forked from opensciencegrid/osgvo-el7
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
136 lines (121 loc) · 3.84 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
FROM centos:7
MAINTAINER Mats Rynge "rynge@isi.edu"
RUN yum -y upgrade
RUN yum -y install epel-release yum-plugin-priorities
# osg repo
RUN yum -y install http://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm
# pegasus repo
RUN echo -e "# Pegasus\n[Pegasus]\nname=Pegasus\nbaseurl=http://download.pegasus.isi.edu/wms/download/rhel/7/\$basearch/\ngpgcheck=0\nenabled=1\npriority=50" >/etc/yum.repos.d/pegasus.repo
# well rounded basic system to support a wide range of user jobs
RUN yum -y groups mark convert \
&& yum -y grouplist \
&& yum -y groupinstall "Compatibility Libraries" \
"Development Tools" \
"Scientific Support"
RUN yum -y install \
redhat-lsb \
astropy-tools \
bc \
binutils \
binutils-devel \
coreutils \
curl \
fontconfig \
gcc \
gcc-c++ \
gcc-gfortran \
git \
glew-devel \
glib2-devel \
glib-devel \
graphviz \
gsl-devel \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
libgfortran \
libGLU \
libgomp \
libicu \
libquadmath \
libtool \
libtool-ltdl \
libtool-ltdl-devel \
libX11-devel \
libXaw-devel \
libXext-devel \
libXft-devel \
libxml2 \
libxml2-devel \
libXmu-devel \
libXpm \
libXpm-devel \
libXt \
mesa-libGL-devel \
numpy \
octave \
octave-devel \
osg-wn-client \
openssl098e \
p7zip \
p7zip-plugins \
python-astropy \
python-devel \
R-devel \
redhat-lsb-core \
rsync \
scipy \
subversion \
tcl-devel \
tcsh \
time \
tk-devel \
wget \
which
# Cuda and cudnn - in case we land on GPU nodes. See:
# https://developer.nvidia.com/cuda-downloads
# https://gitlab.com/nvidia/cuda/blob/centos7/9.0/devel/cudnn7/Dockerfile
RUN rpm -Uvh https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-9.0.176-1.x86_64.rpm \
&& yum -y clean all \
&& yum -y install cuda-9-1 \
&& cd /usr/local \
&& curl -fsSL http://developer.download.nvidia.com/compute/redist/cudnn/v7.0.5/cudnn-9.1-linux-x64-v7.tgz -O \
&& tar --no-same-owner -xzf cudnn-9.1-linux-x64-v7.tgz -C /usr/local \
&& rm -f cudnn-9.1-linux-x64-v7.tgz \
&& ldconfig
# osg
# use CA certs from CVMFS
RUN yum -y install osg-ca-certs osg-wn-client \
&& mv /etc/grid-security/certificates /etc/grid-security/certificates.osg-ca-certs \
&& ln -f -s /cvmfs/oasis.opensciencegrid.org/mis/certificates /etc/grid-security/certificates
# htcondor - include so we can chirp
RUN yum -y install condor
# pegasus
RUN yum -y install pegasus
# Cleaning caches to reduce size of image
RUN yum clean all
# required directories
RUN for MNTPOINT in \
/cvmfs \
/hadoop \
/hdfs \
/lizard \
/mnt/hadoop \
/mnt/hdfs \
/xenon \
/spt \
/stash2 \
; do \
mkdir -p $MNTPOINT ; \
done
# make sure we have a way to bind host provided libraries
# see https://github.com/singularityware/singularity/issues/611
RUN mkdir -p /host-libs /etc/OpenCL/vendors
# some extra singularity stuff
COPY .singularity.d /.singularity.d
RUN cd / && \
ln -s .singularity.d/actions/exec .exec && \
ln -s .singularity.d/actions/run .run && \
ln -s .singularity.d/actions/test .shell && \
ln -s .singularity.d/runscript singularity
# build info
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt