forked from pnlbwh/fsl-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity.centos7
49 lines (26 loc) · 1.05 KB
/
Singularity.centos7
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
Bootstrap: docker
From: centos:7.5.1804
%labels
Maintainer: Tashrif Billah <[email protected]>
Organization: PNL-BWH-HMS
%help
Singularity recipe for FSL and FSLeyes
%post
# set up user and working directory
cd /
# libraries and commands for FSL
yum -y update
yum -y install epel-release wget file bzip2 openblas-devel which libmng libpng12 libSM gtk2 mesa-dri-drivers
# install FSL, -V 5.0.11, you are welcome to change it below
wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py -O fslinstaller.py
python fslinstaller.py -V 6.0.1 -d `pwd`/fsl-5.0.11-centos7 -p
# setup FSL environment
export FSLDIR=/fsl-5.0.11-centos7
# export PATH=$FSLDIR/bin/:$PATH
# source $FSLDIR/etc/fslconf/fsl.sh
# apply patch
$FSLDIR/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.*
%environment
export FSLDIR=/fsl-5.0.11-centos7
export PATH=$FSLDIR/bin/:$PATH
source $FSLDIR/etc/fslconf/fsl.sh