-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
76 lines (62 loc) · 2.28 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM hub.opensciencegrid.org/htc/centos:7
LABEL opensciencegrid.name="XENONnT"
LABEL opensciencegrid.description="Base software environment for XENONnT, including Python 3.9 and data management tools"
LABEL opensciencegrid.url="http://www.xenon1t.org/"
LABEL opensciencegrid.category="Project"
LABEL opensciencegrid.definition_url="https://github.com/XENONnT/base_environment"
ARG XENONnT_TAG
ENV CONDA_OVERRIDE_GLIBC=2.36
RUN echo "Building Docker container for XENONnT_${XENONnT_TAG} ..."
RUN yum-config-manager --disable Pegasus
RUN yum -y clean all && yum -y --skip-broken upgrade
RUN yum -y install centos-release-scl && \
sed -i.bak 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i.bak 's|#.*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \
yum -y install \
cmake \
davix-devel \
dcap-devel \
devtoolset-9 \
doxygen \
dpm-devel \
gfal2-all \
gfal2-devel \
gfal2-plugin-file \
gfal2-plugin-gridftp \
gfal2-plugin-http \
gfal2-plugin-sftp \
gfal2-plugin-srm \
gfal2-plugin-xrootd \
glib2-devel \
globus-gass-copy-devel \
graphviz \
gtest-devel \
json-c-devel \
lfc-devel \
libarchive \
libattr-devel \
libffi-devel \
libssh2-devel \
libuuid-devel \
openldap-devel \
srm-ifce-devel \
xrootd-client-devel \
zlib-devel \
nano \
bash-completion \
bash-completion-extras \
&& \
yum clean all && \
localedef -i en_US -f UTF-8 en_US.UTF-8
ADD create-env conda_xnt.yml requirements.txt /tmp/
COPY extra_requirements/requirements-tests.txt /tmp/extra_requirements/requirements-tests.txt
RUN source /opt/rh/devtoolset-9/enable && \
cd /tmp && \
bash create-env /opt/XENONnT ${XENONnT_TAG} && \
rm -f create-env conda_xnt.yml
# relax permissions so we can build cvmfs tar balls
RUN mkdir -p /cvmfs
RUN chmod 1777 /cvmfs
COPY labels.json /.singularity.d/
# build info
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt