forked from opensciencegrid/osgvo-el7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
121 lines (105 loc) · 2.13 KB
/
Singularity
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
bootstrap:docker
From:centos:7
%post
yum -y upgrade
yum -y install epel-release yum-plugin-priorities
# osg repo
yum -y install http://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm
# pegasus repo
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
yum -y groups mark convert
yum -y grouplist
yum -y groupinstall "Compatibility Libraries" \
"Development Tools" \
"Scientific Support"
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 \
openssh \
openssh-server \
openssl098e \
osg-wn-client \
p7zip \
p7zip-plugins \
python-astropy \
python-devel \
R-devel \
redhat-lsb-core \
rsync \
scipy \
stashcache-client \
subversion \
tcl-devel \
tcsh \
time \
tk-devel \
wget \
which
# osg
yum -y install osg-ca-certs osg-wn-client
rm -f /etc/grid-security/certificates/*.r0
# htcondor - include so we can chirp
yum -y install condor
# pegasus
yum -y install pegasus
# Cleaning caches to reduce size of image
yum clean all
# required directories
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
mkdir -p /host-libs /etc/OpenCL/vendors
# build info
echo "Timestamp:" `date --utc` | tee /image-build-info.txt