Skip to content

Commit 9fb9c7e

Browse files
committed
ENH: update dockerfile
1 parent 5239d83 commit 9fb9c7e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pull request on our GitHub repository:
66
# https://github.com/kaczmarj/neurodocker
77
#
8-
# Timestamp: 2018-05-16 08:08:30
8+
# Timestamp: 2018-05-16 09:31:36
99

1010
FROM neurodebian:stretch-non-free
1111

@@ -126,8 +126,8 @@ RUN conda create -y -q --name neuro python=3.6 \
126126
&& sync \
127127
&& sed -i '$isource activate neuro' $ND_ENTRYPOINT
128128

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"
131131

132132
USER root
133133

@@ -140,16 +140,16 @@ RUN mkdir /output && chmod 777 /output && chmod a+s /output
140140
USER neuro
141141

142142
# 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\tname = miykael\n\temail = [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*"
144147

145148
# User-defined instruction
146149
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
147150

148151
COPY [".", "/home/neuro/nipype_tutorial"]
149152

150-
# User-defined instruction
151-
RUN printf "[user]\n\tname = miykael\n\temail = [email protected]\n" > ~/.gitconfig
152-
153153
USER root
154154

155155
# User-defined instruction
@@ -227,7 +227,7 @@ RUN echo '{ \
227227
\n } \
228228
\n ], \
229229
\n [ \
230-
\n "run", \
230+
\n "run_bash", \
231231
\n "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
232232
\n ], \
233233
\n [ \
@@ -248,6 +248,10 @@ RUN echo '{ \
248248
\n ], \
249249
\n [ \
250250
\n "run", \
251+
\n "printf \"[user]\\\n\\tname = miykael\\\n\\temail = [email protected]\\\n\" > ~/.gitconfig" \
252+
\n ], \
253+
\n [ \
254+
\n "run_bash", \
251255
\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*" \
252256
\n ], \
253257
\n [ \
@@ -262,10 +266,6 @@ RUN echo '{ \
262266
\n ] \
263267
\n ], \
264268
\n [ \
265-
\n "run", \
266-
\n "printf \"[user]\\\n\\tname = miykael\\\n\\temail = [email protected]\\\n\" > ~/.gitconfig" \
267-
\n ], \
268-
\n [ \
269269
\n "user", \
270270
\n "root" \
271271
\n ], \
@@ -296,6 +296,6 @@ RUN echo '{ \
296296
\n ] \
297297
\n ] \
298298
\n ], \
299-
\n "generation_timestamp": "2018-05-16 08:08:30", \
299+
\n "generation_timestamp": "2018-05-16 09:31:36", \
300300
\n "neurodocker_version": "0.3.2" \
301301
\n}' > /neurodocker/neurodocker_specs.json

0 commit comments

Comments
 (0)