forked from PocketCoffea/PocketCoffea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
22 lines (19 loc) · 849 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG FROM_IMAGE=gitlab-registry.cern.ch/batch-team/dask-lxplus/lxdask-cc7:latest
FROM ${FROM_IMAGE}
ARG CLUSTER=lxplus-cc7
ADD . .
RUN echo "=======================================" && \
echo "Installing PocketCoffea" && \
echo "on cluster environment: $CLUSTER" && \
echo "Current time:" $(date) && \
echo "=======================================" && \
if [[ ${CLUSTER} == "lxplus-cc7" ]]; then \
echo "Fixing dependencies in the image" && \
conda install -y numba>=0.57.0 llvmlite==0.40.0 numpy>=1.22.0 && \
python -m pip install -U dask-lxplus==0.3.2 dask-jobqueue==0.8.2; \
elif [[ ${CLUSTER} == "lxplus-el9" ]]; then \
echo "Installing on alma9"; \
fi && \
echo "Installing PocketCoffea" && \
python -m pip install "setuptools<71" && \
python -m pip install . --verbose