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 09:31 :36
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -129,40 +129,40 @@ RUN conda create -y -q --name neuro python=3.6 \
129
129
# User-defined BASH instruction
130
130
RUN bash -c "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
131
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"
134
-
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
142
+ # User-defined instruction
143
+ RUN printf
"[user]\n\t name = miykael\n\t email = [email protected] \n " > ~/.gitconfig
144
+
145
145
# User-defined BASH instruction
146
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*"
147
147
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"
148
+ # User-defined instruction
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
150
150
151
151
COPY ["." , "/home/neuro/nipype_tutorial" ]
152
152
153
- # User-defined BASH instruction
154
- RUN bash -c
"printf \" [user]\n\t name = miykael\n\t email = [email protected] \n\" > ~/.gitconfig"
155
-
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" ]
@@ -231,31 +231,31 @@ RUN echo '{ \
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 [ \
250
+ \n "run", \
251
+ \n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = [email protected] \\\n\" > ~/.gitconfig" \
252
+ \n ], \
253
+ \n [ \
254
254
\n "run_bash", \
255
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*" \
256
256
\n ], \
257
257
\n [ \
258
- \n "run_bash ", \
258
+ \n "run ", \
259
259
\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
260
\n ], \
261
261
\n [ \
@@ -266,26 +266,26 @@ RUN echo '{ \
266
266
\n ] \
267
267
\n ], \
268
268
\n [ \
269
- \n "run_bash", \
270
- \n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = [email protected] \\\n\" > ~/.gitconfig" \
271
- \n ], \
272
- \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 09:31 :36", \
300
300
\n "neurodocker_version": "0.3.2" \
301
301
\n }' > /neurodocker/neurodocker_specs.json
0 commit comments