-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 985 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ARG KATSDPDOCKERBASE_REGISTRY=harbor.sdp.kat.ac.za/dpp
FROM $KATSDPDOCKERBASE_REGISTRY/docker-base-gpu-build as build
# Enable Python 3 venv
ENV PATH="$PATH_PYTHON3" VIRTUAL_ENV="$VIRTUAL_ENV_PYTHON3"
# Install Python dependencies
COPY --chown=kat:kat requirements.txt /tmp/install/requirements.txt
RUN install_pinned.py -r /tmp/install/requirements.txt
# Install the current package
COPY --chown=kat:kat . /tmp/install/katsdpingest
RUN cd /tmp/install/katsdpingest && \
python ./setup.py clean && pip install --no-deps . && pip check
#######################################################################
FROM $KATSDPDOCKERBASE_REGISTRY/docker-base-gpu-runtime
LABEL maintainer="sdpdev+katsdpingest@ska.ac.za"
COPY --chown=kat:kat --from=build /home/kat/ve3 /home/kat/ve3
ENV PATH="$PATH_PYTHON3" VIRTUAL_ENV="$VIRTUAL_ENV_PYTHON3"
# Allow raw packets (for ibverbs raw QPs)
USER root
RUN setcap cap_net_raw+p /usr/local/bin/capambel
USER kat
EXPOSE 2040
EXPOSE 7148/udp