-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (26 loc) · 1.36 KB
/
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
# Dockerfile for testing pachyderm
# NOTE: This could also be used for running pachyderm, but it wouldn't be terribly useful.
# We use the Overwatch base image so we don't have to deal with setting up ROOT.
# All we need to know is that the user is named "overwatch".
# Set the python version here so that we can use it to set the base image.
ARG PYTHON_VERSION=3.7.1
FROM rehlers/overwatch-base:py${PYTHON_VERSION}
LABEL maintainer="Raymond Ehlers <raymond.ehlers@cern.ch>, Oak Ridge National Lab"
# Setup environment
ENV ROOTSYS="/opt/root"
ENV PATH="${ROOTSYS}/bin:/home/overwatch/.local/bin:/home/overwatch/.poetry/bin:${PATH}"
ENV LD_LIBRARY_PATH="${ROOTSYS}/lib:${LD_LIBRARY_PATH}"
ENV PYTHONPATH="${ROOTSYS}/lib:${PYTHONPATH}"
# Setup pachyderm
ENV PACHYDERM_ROOT /opt/pachyderm
# We intentionally make the directory before setting it as the workdir so the directory is made with user permissions
# (workdir always creates the directory with root permissions)
RUN mkdir -p ${PACHYDERM_ROOT}
WORKDIR ${PACHYDERM_ROOT}
# Copy pachyderm into the image.
COPY --chown=overwatch:overwatch . ${PACHYDERM_ROOT}
# Install pachyderm. We need to install numpy first so that
# probfit (which is only needed for tests!) will install properly.
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - \
&& poetry debug \
&& poetry install