5
5
# pull request on our GitHub repository:
6
6
# https://github.com/kaczmarj/neurodocker
7
7
#
8
- # Timestamp: 2018-05-14 11:52:36
8
+ # Timestamp: 2018-05-16 08:08:30
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -126,43 +126,43 @@ 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 BASH instruction
130
- RUN bash -c "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
131
-
132
- # User-defined BASH instruction
133
- RUN bash -c "mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \\ " 0.0.0.0\\ " > ~/.jupyter/jupyter_notebook_config.py"
129
+ # User-defined instruction
130
+ RUN source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main
134
131
135
132
USER root
136
133
137
- # User-defined BASH instruction
138
- RUN bash -c " mkdir /data && chmod 777 /data && chmod a+s /data"
134
+ # User-defined instruction
135
+ RUN mkdir /data && chmod 777 /data && chmod a+s /data
139
136
140
- # User-defined BASH instruction
141
- RUN bash -c " mkdir /output && chmod 777 /output && chmod a+s /output"
137
+ # User-defined instruction
138
+ RUN mkdir /output && chmod 777 /output && chmod a+s /output
142
139
143
140
USER neuro
144
141
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*"
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*
147
144
148
- # User-defined BASH instruction
149
- RUN bash -c " 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"
145
+ # User-defined instruction
146
+ 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
150
147
151
148
COPY ["." , "/home/neuro/nipype_tutorial" ]
152
149
153
- # User-defined BASH instruction
154
- RUN bash -c " printf \ " [user]\n\t name = miykael\n\t email = michaelnotter@hotmail.com\n\ " > ~/.gitconfig"
150
+ # User-defined instruction
151
+ RUN printf "[user]\n\t name = miykael\n\t email = michaelnotter@hotmail.com\n " > ~/.gitconfig
155
152
156
153
USER root
157
154
158
- # User-defined BASH instruction
159
- RUN bash -c " chown -R neuro /home/neuro/nipype_tutorial"
155
+ # User-defined instruction
156
+ RUN chown -R neuro /home/neuro/nipype_tutorial
160
157
161
- # User-defined BASH instruction
162
- RUN bash -c " rm -rf /opt/conda/pkgs/*"
158
+ # User-defined instruction
159
+ RUN rm -rf /opt/conda/pkgs/*
163
160
164
161
USER neuro
165
162
163
+ # User-defined instruction
164
+ RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \" 0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
165
+
166
166
WORKDIR /home/neuro/nipype_tutorial
167
167
168
168
CMD ["jupyter-notebook" ]
@@ -227,35 +227,31 @@ RUN echo '{ \
227
227
\n } \
228
228
\n ], \
229
229
\n [ \
230
- \n "run_bash ", \
230
+ \n "run ", \
231
231
\n "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
232
232
\n ], \
233
233
\n [ \
234
- \n "run_bash", \
235
- \n "mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \\\" 0.0.0.0\\\" > ~/.jupyter/jupyter_notebook_config.py" \
236
- \n ], \
237
- \n [ \
238
234
\n "user", \
239
235
\n "root" \
240
236
\n ], \
241
237
\n [ \
242
- \n "run_bash ", \
238
+ \n "run ", \
243
239
\n "mkdir /data && chmod 777 /data && chmod a+s /data" \
244
240
\n ], \
245
241
\n [ \
246
- \n "run_bash ", \
242
+ \n "run ", \
247
243
\n "mkdir /output && chmod 777 /output && chmod a+s /output" \
248
244
\n ], \
249
245
\n [ \
250
246
\n "user", \
251
247
\n "neuro" \
252
248
\n ], \
253
249
\n [ \
254
- \n "run_bash ", \
250
+ \n "run ", \
255
251
\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*" \
256
252
\n ], \
257
253
\n [ \
258
- \n "run_bash ", \
254
+ \n "run ", \
259
255
\n "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" \
260
256
\n ], \
261
257
\n [ \
@@ -266,26 +262,30 @@ RUN echo '{ \
266
262
\n ] \
267
263
\n ], \
268
264
\n [ \
269
- \n "run_bash ", \
265
+ \n "run ", \
270
266
\n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = michaelnotter@hotmail.com\\\n\" > ~/.gitconfig" \
271
267
\n ], \
272
268
\n [ \
273
269
\n "user", \
274
270
\n "root" \
275
271
\n ], \
276
272
\n [ \
277
- \n "run_bash ", \
273
+ \n "run ", \
278
274
\n "chown -R neuro /home/neuro/nipype_tutorial" \
279
275
\n ], \
280
276
\n [ \
281
- \n "run_bash ", \
277
+ \n "run ", \
282
278
\n "rm -rf /opt/conda/pkgs/*" \
283
279
\n ], \
284
280
\n [ \
285
281
\n "user", \
286
282
\n "neuro" \
287
283
\n ], \
288
284
\n [ \
285
+ \n "run", \
286
+ \n "mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \\\" 0.0.0.0\\\" > ~/.jupyter/jupyter_notebook_config.py" \
287
+ \n ], \
288
+ \n [ \
289
289
\n "workdir", \
290
290
\n "/home/neuro/nipype_tutorial" \
291
291
\n ], \
@@ -296,6 +296,6 @@ RUN echo '{ \
296
296
\n ] \
297
297
\n ] \
298
298
\n ], \
299
- \n "generation_timestamp": "2018-05-14 11:52:36 ", \
299
+ \n "generation_timestamp": "2018-05-16 08:08:30 ", \
300
300
\n "neurodocker_version": "0.3.2" \
301
301
\n }' > /neurodocker/neurodocker_specs.json
0 commit comments