-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
52 lines (40 loc) · 1.97 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
Bootstrap:shub
From:murphygroup/singularity-matlabmcr2018b
IncludeCmd: yes
%post
echo "Download binaries"
cd /home/murphylab && \
wget -nc --quiet http://www.cellorganizer.org/Downloads/v2.8.1/docker/cellorganizer-binaries-matlabmcr2018b.tgz && \
tar -xvf cellorganizer-binaries-matlabmcr2018b.tgz && \
rm cellorganizer-binaries-matlabmcr2018b.tgz
mv cellorganizer-binaries/ /opt/ && \
chmod +x /opt/cellorganizer-binaries/img2slml && \
chmod +x /opt/cellorganizer-binaries/slml2img && \
chmod +x /opt/cellorganizer-binaries/slml2report && \
chmod +x /opt/cellorganizer-binaries/slml2info && \
chmod +x /opt/cellorganizer-binaries/slml2slml && \
ln -s /opt/cellorganizer-binaries/img2slml /usr/local/bin/img2slml && \
ln -s /opt/cellorganizer-binaries/slml2img /usr/local/bin/slml2img && \
ln -s /opt/cellorganizer-binaries/slml2report /usr/local/bin/slml2report && \
ln -s /opt/cellorganizer-binaries/slml2info /usr/local/bin/slml2info && \
ln -s /opt/cellorganizer-binaries/slml2slml /usr/local/bin/slml2slml
mv /opt/mcr/v95/bin/glnxa64/libexpat.so.1 /opt/mcr/v95/bin/glnxa64/libexpat.so.1.backup
mv /opt/mcr/v95/bin/glnxa64/libexpat.so.1.5.0 /opt/mcr/v95/bin/glnxa64/libexpat.so.1.5.0.backup
mv /opt/mcr/v95/bin/glnxa64/libcrypto.so.1.0.0 /opt/mcr/v95/bin/glnxa64/libcrypto.so.1.0.0.backup
mv /opt/mcr/v95/bin/glnxa64/libssl.so.1.0.0 /opt/mcr/v95/bin/glnxa64/libssl.so.1.0.0.backup
echo "Installing Download Demos Scripts"
cd /home/murphylab
mkdir /opt/cellorganizer-demos
url='http://www.cellorganizer.org/Downloads/v2.8.0/singularity/demos.tgz'
wget -O demo_set.tgz $url && tar xvf demo_set.tgz -C /opt/cellorganizer-demos
rm -rf demo_set.tgz
%apprun img2slml
/usr/local/bin/img2slml "$@"
%apprun slml2img
/usr/local/bin/slml2img "$@"
%apprun slml2report
/usr/local/bin/slml2report "$@"
%apprun slml2info
/usr/local/bin/slml2info "$@"
%apprun slml2slml
/usr/local/bin/slml2slml "$@"