forked from UNFmontreal/Dcm2Bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
45 lines (33 loc) · 1.05 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
Bootstrap: debootstrap
OSVersion: xenial
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
%help
Launching dcm2bids with singularity:
singularity exec <container>.simg dcm2bids [args]
Info: https://github.com/cbedetti/Dcm2Bids
%labels
Maintainer Christophe Bedetti <[email protected]>
%post
#Dependencies
sed -i 's/$/ universe/' /etc/apt/sources.list
apt update && apt upgrade
apt install -y build-essential cmake git pigz \
nodejs-legacy npm python python-pip
apt clean && apt autoclean && apt autoremove -y
pip install --upgrade pip
#Install bids-validator
npm install -g bids-validator
#Install dcm2niix from github
cd /usr/local/src
git clone https://github.com/rordenlab/dcm2niix.git
cd dcm2niix
git checkout tags/v1.0.20181125 -b install
mkdir build && cd build
cmake ..
make install
#Install dcm2bids from github
cd /usr/local/src
git clone https://github.com/cbedetti/Dcm2Bids.git
cd Dcm2Bids && pip install .
%runscript
exec dcm2bids "$@"