File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,10 @@ def _render_labels(self):
147
147
def _add_neurodocker_header (self ):
148
148
kwds = {'version' : 'generic' , 'method' : 'custom' }
149
149
# If ndfreeze is requested, put it before the neurodocker header.
150
- offset = 1 if self ._specs ['instructions' ][1 ][0 ] == 'ndfreeze' else 0
150
+ offset = 0
151
+ if len (self ._specs ['instructions' ]) > 1 :
152
+ if self ._specs ['instructions' ][1 ][0 ] == 'ndfreeze' :
153
+ offset = 1
151
154
self ._specs ['instructions' ].insert (1 + offset , ('_header' , kwds ))
152
155
153
156
def _fill_parts (self ):
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ def test_docker(self):
9
9
specs = {
10
10
'pkg_manager' : 'apt' ,
11
11
'instructions' : [
12
- ('base' , 'ubuntu:18.04 ' ),
13
- ('spm12' , {'version' : 'dev ' }),
12
+ ('base' , 'debian:stretch ' ),
13
+ ('spm12' , {'version' : 'r7219 ' }),
14
14
('user' , 'neuro' ),
15
15
],
16
16
}
@@ -23,7 +23,7 @@ def test_singularity(self):
23
23
specs = {
24
24
'pkg_manager' : 'apt' ,
25
25
'instructions' : [
26
- ('base' , 'docker://ubuntu:16.04 ' ),
26
+ ('base' , 'docker://debian:stretch ' ),
27
27
('spm12' , {'version' : 'r7219' }),
28
28
('user' , 'neuro' ),
29
29
],
Original file line number Diff line number Diff line change 2
2
3
3
set -exu
4
4
5
- echo ' fprintf("testing") ' > /tmp /test.m
6
- $SPMMCRCMD /tmp /test.m
5
+ echo " a = 1 " > ~ /test.m
6
+ $SPMMCRCMD ~ /test.m
7
7
8
8
printf ' passed'
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ generic:
16
16
" 5.0.9 " : https://fsl.fmrib.ox.ac.uk/fsldownloads/fsl-5.0.9-centos6_64.tar.gz
17
17
" 5.0.8 " : https://fsl.fmrib.ox.ac.uk/fsldownloads/oldversions/fsl-5.0.8-centos6_64.tar.gz
18
18
dependencies :
19
- apt : bc dc file libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesa-dev libgomp1 libice6 libmng1 libxcursor1 libxft2 libxinerama1 libxrandr2 libxrender1 libxt6 wget
19
+ apt : bc dc file libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesa-dev libgomp1 libice6 libxcursor1 libxft2 libxinerama1 libxrandr2 libxrender1 libxt6 wget
20
20
yum : bc file libGL libGLU libgomp libICE libjpeg libmng libpng12 libSM libX11 libXcursor libXext libXft libXinerama libXrandr libXt wget
21
21
env :
22
22
FSLDIR : " {{ fsl.install_path }}"
You can’t perform that action at this time.
0 commit comments