-
Notifications
You must be signed in to change notification settings - Fork 2
/
apptainer.def
58 lines (43 loc) · 1.28 KB
/
apptainer.def
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
bootstrap:docker
From:centos:7
%environment
PATH=/opt/Montage/bin:/usr/bin:/bin
%setup
mkdir -p $SINGULARITY_ROOTFS/opt/montage-workflow-v3
cp -a * $SINGULARITY_ROOTFS/opt/montage-workflow-v3/
rm -rf $SINGULARITY_ROOTFS/opt/montage-workflow-v3/data
%post
yum -y upgrade
yum -y install epel-release yum-plugin-priorities
# osg repo
yum -y install http://repo.opensciencegrid.org/osg/3.6/osg-3.6-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
yum -y install \
file \
gcc \
gcc-gfortran \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
libjpeg-turbo-devel \
openjpeg-devel \
osg-ca-certs \
osg-wn-client \
pegasus \
python36-pika \
python36-PyYAML \
python3-devel \
python3-future \
python3-pip \
unzip \
wget
# want astropy in the python3 install as that is what we use for Pegasus API
pip3 install astropy
# Cleaning caches to reduce size of image
yum clean all
cd /opt && \
wget -nv http://montage.ipac.caltech.edu/download/Montage_v6.0.tar.gz && \
tar xzf Montage_v6.0.tar.gz && \
rm -f Montage_v6.0.tar.gz && \
cd Montage && \
make