Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ RUN yum clean all \
&& yum -y install python3-pip python3-pip-wheel python3-devel git \
&& yum clean all

RUN git clone --depth 1 -b $VERSION https://github.com/DUNE-DAQ/connectivityserver.git
RUN python3 -m pip install /connectivityserver
ENV \
APP_ROOT=/opt/app \
VENV_PATH=/opt/venv \
HOME=/opt/app \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PATH="/opt/venv/bin:$PATH"

RUN mkdir -p ${APP_ROOT} ${VENV_PATH}

WORKDIR ${APP_ROOT}
RUN python3 -m venv ${VENV_PATH} \
&& git clone --depth 1 -b ${VERSION} https://github.com/DUNE-DAQ/connectivityserver.git \
&& ${VENV_PATH}/bin/pip install --no-cache-dir ./connectivityserver \
&& rm -rf /root/.cache ${HOME}/.cache ${VENV_PATH}/pip-selfcheck.json

COPY --chmod=755 entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]
1 change: 1 addition & 0 deletions deploy/connectivityserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ spec:
- key: node-role.kubernetes.io/worker
operator: Exists
automountServiceAccountToken: false
hostUsers: false
containers:
- image: ghcr.io/dune-daq/connectivityserver:develop
name: connectionservice
Expand Down