5
5
# pull request on our GitHub repository:
6
6
# https://github.com/kaczmarj/neurodocker
7
7
#
8
- # Timestamp: 2018-05-08 17:45:37
8
+ # Timestamp: 2018-05-16 09:31:36
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -130,9 +130,6 @@ RUN conda create -y -q --name neuro python=3.6 \
130
130
# User-defined BASH instruction
131
131
RUN bash -c "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
132
132
133
- # User-defined instruction
134
- RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \" 0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
135
-
136
133
USER root
137
134
138
135
# User-defined instruction
@@ -143,11 +140,14 @@ RUN mkdir /output && chmod 777 /output && chmod a+s /output
143
140
144
141
USER neuro
145
142
143
+ # User-defined instruction
144
+ RUN printf
"[user]\n\t name = miykael\n\t email = [email protected] \n " > ~/.gitconfig
145
+
146
146
# User-defined BASH instruction
147
147
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*"
148
148
149
- # User-defined BASH instruction
150
- 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"
149
+ # User-defined instruction
150
+ 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
151
151
152
152
COPY ["." , "/home/neuro/nipype_tutorial" ]
153
153
@@ -156,11 +156,14 @@ USER root
156
156
# User-defined instruction
157
157
RUN chown -R neuro /home/neuro/nipype_tutorial
158
158
159
- # User-defined BASH instruction
160
- RUN bash -c " rm -rf /opt/conda/pkgs/*"
159
+ # User-defined instruction
160
+ RUN rm -rf /opt/conda/pkgs/*
161
161
162
162
USER neuro
163
163
164
+ # User-defined instruction
165
+ RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \" 0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
166
+
164
167
WORKDIR /home/neuro/nipype_tutorial
165
168
166
169
CMD ["jupyter-notebook" ]
@@ -229,10 +232,6 @@ RUN echo '{ \
229
232
\n "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
230
233
\n ], \
231
234
\n [ \
232
- \n "run", \
233
- \n "mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \\\" 0.0.0.0\\\" > ~/.jupyter/jupyter_notebook_config.py" \
234
- \n ], \
235
- \n [ \
236
235
\n "user", \
237
236
\n "root" \
238
237
\n ], \
@@ -249,11 +248,15 @@ RUN echo '{ \
249
248
\n "neuro" \
250
249
\n ], \
251
250
\n [ \
251
+ \n "run", \
252
+ \n "printf \" [user]\\\n\\ tname = miykael\\\n\\ temail = [email protected] \\\n\" > ~/.gitconfig" \
253
+ \n ], \
254
+ \n [ \
252
255
\n "run_bash", \
253
256
\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*" \
254
257
\n ], \
255
258
\n [ \
256
- \n "run_bash ", \
259
+ \n "run ", \
257
260
\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" \
258
261
\n ], \
259
262
\n [ \
@@ -272,14 +275,18 @@ RUN echo '{ \
272
275
\n "chown -R neuro /home/neuro/nipype_tutorial" \
273
276
\n ], \
274
277
\n [ \
275
- \n "run_bash ", \
278
+ \n "run ", \
276
279
\n "rm -rf /opt/conda/pkgs/*" \
277
280
\n ], \
278
281
\n [ \
279
282
\n "user", \
280
283
\n "neuro" \
281
284
\n ], \
282
285
\n [ \
286
+ \n "run", \
287
+ \n "mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \\\" 0.0.0.0\\\" > ~/.jupyter/jupyter_notebook_config.py" \
288
+ \n ], \
289
+ \n [ \
283
290
\n "workdir", \
284
291
\n "/home/neuro/nipype_tutorial" \
285
292
\n ], \
@@ -290,6 +297,6 @@ RUN echo '{ \
290
297
\n ] \
291
298
\n ] \
292
299
\n ], \
293
- \n "generation_timestamp": "2018-05-08 17:45:37 ", \
300
+ \n "generation_timestamp": "2018-05-16 09:31:36 ", \
294
301
\n "neurodocker_version": "0.3.2" \
295
302
\n }' > /neurodocker/neurodocker_specs.json
0 commit comments