Skip to content

Commit e45a376

Browse files
authored
Merge branch 'master' into nbval_test
2 parents c3f2049 + d80bf15 commit e45a376

File tree

196 files changed

+619828
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+619828
-118
lines changed

Dockerfile

Lines changed: 22 additions & 15 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-08 17:45:37
8+
# Timestamp: 2018-05-16 09:31:36
99

1010
FROM neurodebian:stretch-non-free
1111

@@ -130,9 +130,6 @@ RUN conda create -y -q --name neuro python=3.6 \
130130
# User-defined BASH instruction
131131
RUN bash -c "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
132132

133-
# User-defined instruction
134-
RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
135-
136133
USER root
137134

138135
# User-defined instruction
@@ -143,11 +140,14 @@ RUN mkdir /output && chmod 777 /output && chmod a+s /output
143140

144141
USER neuro
145142

143+
# User-defined instruction
144+
RUN printf "[user]\n\tname = miykael\n\temail = [email protected]\n" > ~/.gitconfig
145+
146146
# User-defined BASH instruction
147147
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*"
148148

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
151151

152152
COPY [".", "/home/neuro/nipype_tutorial"]
153153

@@ -156,11 +156,14 @@ USER root
156156
# User-defined instruction
157157
RUN chown -R neuro /home/neuro/nipype_tutorial
158158

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/*
161161

162162
USER neuro
163163

164+
# User-defined instruction
165+
RUN mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py
166+
164167
WORKDIR /home/neuro/nipype_tutorial
165168

166169
CMD ["jupyter-notebook"]
@@ -229,10 +232,6 @@ RUN echo '{ \
229232
\n "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
230233
\n ], \
231234
\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 [ \
236235
\n "user", \
237236
\n "root" \
238237
\n ], \
@@ -249,11 +248,15 @@ RUN echo '{ \
249248
\n "neuro" \
250249
\n ], \
251250
\n [ \
251+
\n "run", \
252+
\n "printf \"[user]\\\n\\tname = miykael\\\n\\temail = [email protected]\\\n\" > ~/.gitconfig" \
253+
\n ], \
254+
\n [ \
252255
\n "run_bash", \
253256
\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*" \
254257
\n ], \
255258
\n [ \
256-
\n "run_bash", \
259+
\n "run", \
257260
\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" \
258261
\n ], \
259262
\n [ \
@@ -272,14 +275,18 @@ RUN echo '{ \
272275
\n "chown -R neuro /home/neuro/nipype_tutorial" \
273276
\n ], \
274277
\n [ \
275-
\n "run_bash", \
278+
\n "run", \
276279
\n "rm -rf /opt/conda/pkgs/*" \
277280
\n ], \
278281
\n [ \
279282
\n "user", \
280283
\n "neuro" \
281284
\n ], \
282285
\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 [ \
283290
\n "workdir", \
284291
\n "/home/neuro/nipype_tutorial" \
285292
\n ], \
@@ -290,6 +297,6 @@ RUN echo '{ \
290297
\n ] \
291298
\n ] \
292299
\n ], \
293-
\n "generation_timestamp": "2018-05-08 17:45:37", \
300+
\n "generation_timestamp": "2018-05-16 09:31:36", \
294301
\n "neurodocker_version": "0.3.2" \
295302
\n}' > /neurodocker/neurodocker_specs.json

create_dockerfile.sh

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,36 @@
11
#!/bin/bash
22

3-
docker run --rm kaczmarj/neurodocker:v0.3.2 generate -b neurodebian:stretch-non-free -p apt \
4-
--install convert3d ants fsl gcc g++ graphviz tree \
5-
git-annex-standalone vim emacs-nox nano less ncdu \
6-
tig git-annex-remote-rclone octave \
7-
--add-to-entrypoint "source /etc/fsl/fsl.sh" \
8-
--spm version=12 matlab_version=R2017a \
9-
--user=neuro \
10-
--miniconda miniconda_version="4.3.31" \
11-
conda_install="python=3.6 pytest jupyter jupyterlab jupyter_contrib_nbextensions
12-
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
13-
pip_install="https://github.com/nipy/nipype/tarball/master
14-
https://github.com/INCF/pybids/tarball/master
15-
nilearn datalad[full] nipy duecredit nbval" \
16-
env_name="neuro" \
17-
activate=True \
18-
--run-bash "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
19-
--run 'mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py' \
20-
--user=root \
21-
--run 'mkdir /data && chmod 777 /data && chmod a+s /data' \
22-
--run 'mkdir /output && chmod 777 /output && chmod a+s /output' \
23-
--user=neuro \
24-
--run-bash '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*' \
25-
--run-bash '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' \
26-
--copy . "/home/neuro/nipype_tutorial" \
27-
--user=root \
28-
--run 'chown -R neuro /home/neuro/nipype_tutorial' \
29-
--run-bash 'rm -rf /opt/conda/pkgs/*' \
30-
--user=neuro \
31-
--workdir /home/neuro/nipype_tutorial \
32-
--cmd "jupyter-notebook" \
33-
--no-check-urls > Dockerfile
3+
docker run --rm kaczmarj/neurodocker:v0.3.2 generate \
4+
--base neurodebian:stretch-non-free \
5+
--pkg-manager apt \
6+
--install convert3d ants fsl gcc g++ graphviz tree \
7+
git-annex-standalone vim emacs-nox nano less ncdu \
8+
tig git-annex-remote-rclone octave \
9+
--add-to-entrypoint "source /etc/fsl/fsl.sh" \
10+
--spm version=12 matlab_version=R2017a \
11+
--user=neuro \
12+
--miniconda miniconda_version="4.3.31" \
13+
conda_install="python=3.6 pytest jupyter jupyterlab jupyter_contrib_nbextensions
14+
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
15+
pip_install="https://github.com/nipy/nipype/tarball/master
16+
https://github.com/INCF/pybids/tarball/master
17+
nilearn datalad[full] nipy duecredit nbval" \
18+
env_name="neuro" \
19+
activate=True \
20+
--run-bash "source activate neuro && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main" \
21+
--user=root \
22+
--run 'mkdir /data && chmod 777 /data && chmod a+s /data' \
23+
--run 'mkdir /output && chmod 777 /output && chmod a+s /output' \
24+
--user=neuro \
25+
--run 'printf "[user]\n\tname = miykael\n\temail = [email protected]\n" > ~/.gitconfig' \
26+
--run-bash '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*' \
27+
--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' \
28+
--copy . "/home/neuro/nipype_tutorial" \
29+
--user=root \
30+
--run 'chown -R neuro /home/neuro/nipype_tutorial' \
31+
--run 'rm -rf /opt/conda/pkgs/*' \
32+
--user=neuro \
33+
--run 'mkdir -p ~/.jupyter && echo c.NotebookApp.ip = \"0.0.0.0\" > ~/.jupyter/jupyter_notebook_config.py' \
34+
--workdir /home/neuro/nipype_tutorial \
35+
--cmd "jupyter-notebook" \
36+
--no-check-urls > Dockerfile

0 commit comments

Comments
 (0)