5
5
# pull request on our GitHub repository:
6
6
# https://github.com/kaczmarj/neurodocker
7
7
#
8
- # Timestamp: 2018-05-16 08:08:30
8
+ # Timestamp: 2018-05-16 09:31:36
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -126,8 +126,8 @@ RUN conda create -y -q --name neuro python=3.6 \
126
126
&& sync \
127
127
&& sed -i '$isource activate neuro' $ND_ENTRYPOINT
128
128
129
- # User-defined instruction
130
- RUN source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main
129
+ # User-defined BASH instruction
130
+ RUN bash -c " source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
131
131
132
132
USER root
133
133
@@ -140,16 +140,16 @@ RUN mkdir /output && chmod 777 /output && chmod a+s /output
140
140
USER neuro
141
141
142
142
# User-defined instruction
143
- RUN source activate neuro && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && cd ds000114 && datalad update -r && datalad get -r sub-01/ses-test/anat sub-01/ses-test/func/*fingerfootlips*
143
+ RUN printf
"[user]\n\t name = miykael\n\t email = [email protected] \n " > ~/.gitconfig
144
+
145
+ # User-defined BASH instruction
146
+ RUN bash -c "source activate neuro && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && cd ds000114 && datalad update -r && datalad get -r sub-01/ses-test/anat sub-01/ses-test/func/*fingerfootlips*"
144
147
145
148
# User-defined instruction
146
149
RUN curl -L https://files.osf.io/v1/resources/fvuh8/providers/osfstorage/580705089ad5a101f17944a9 -o /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz && tar xf /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz -C /data/ds000114/derivatives/fmriprep/. && rm /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c.tar.gz && find /data/ds000114/derivatives/fmriprep/mni_icbm152_nlin_asym_09c -type f -not -name ?mm_T1.nii.gz -not -name ?mm_brainmask.nii.gz -not -name ?mm_tpm*.nii.gz -delete
147
150
148
151
COPY ["." , "/home/neuro/nipype_tutorial" ]
149
152
150
- # User-defined instruction
151
- RUN printf
"[user]\n\t name = miykael\n\t email = [email protected] \n " > ~/.gitconfig
152
-
153
153
USER root
154
154
155
155
# User-defined instruction
@@ -227,7 +227,7 @@ RUN echo '{ \
227
227
\n } \
228
228
\n ], \
229
229
\n [ \
230
- \n "run ", \
230
+ \n "run_bash ", \
231
231
\n "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
232
232
\n ], \
233
233
\n [ \
@@ -248,6 +248,10 @@ RUN echo '{ \
248
248
\n ], \
249
249
\n [ \
250
250
\n "run", \
251
+ \n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = [email protected] \\\n\" > ~/.gitconfig" \
252
+ \n ], \
253
+ \n [ \
254
+ \n "run_bash", \
251
255
\n "source activate neuro && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && cd ds000114 && datalad update -r && datalad get -r sub-01/ses-test/anat sub-01/ses-test/func/*fingerfootlips*" \
252
256
\n ], \
253
257
\n [ \
@@ -262,10 +266,6 @@ RUN echo '{ \
262
266
\n ] \
263
267
\n ], \
264
268
\n [ \
265
- \n "run", \
266
- \n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = [email protected] \\\n\" > ~/.gitconfig" \
267
- \n ], \
268
- \n [ \
269
269
\n "user", \
270
270
\n "root" \
271
271
\n ], \
@@ -296,6 +296,6 @@ RUN echo '{ \
296
296
\n ] \
297
297
\n ] \
298
298
\n ], \
299
- \n "generation_timestamp": "2018-05-16 08:08:30 ", \
299
+ \n "generation_timestamp": "2018-05-16 09:31:36 ", \
300
300
\n "neurodocker_version": "0.3.2" \
301
301
\n }' > /neurodocker/neurodocker_specs.json
0 commit comments