Skip to content

Commit db847bc

Browse files
committed
ENH: update fsl to 5.0.10
1 parent 79f46d7 commit db847bc

File tree

2 files changed

+39
-30
lines changed

2 files changed

+39
-30
lines changed

Dockerfile

Lines changed: 36 additions & 26 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: 2017-09-03 17:45:24
8+
# Timestamp: 2017-09-03 18:36:53
99

1010
FROM neurodebian:stretch-non-free
1111

@@ -36,8 +36,7 @@ ENTRYPOINT ["/neurodocker/startup.sh"]
3636
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
3737

3838
RUN apt-get update -qq \
39-
&& apt-get install -y -q --no-install-recommends fsl \
40-
dcm2niix \
39+
&& apt-get install -y -q --no-install-recommends dcm2niix \
4140
convert3d \
4241
ants \
4342
graphviz \
@@ -98,6 +97,29 @@ RUN apt-get update -qq && apt-get install -yq --no-install-recommends ed gsl-bin
9897
&& /opt/afni/rPkgsInstall -pkgs ALL \
9998
&& rm -rf /tmp/*
10099

100+
#-----------------------------------------------------------
101+
# Install FSL v5.0.10
102+
# FSL is non-free. If you are considering commerical use
103+
# of this Docker image, please consult the relevant license:
104+
# https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Licence
105+
#-----------------------------------------------------------
106+
RUN apt-get update -qq && apt-get install -yq --no-install-recommends dc \
107+
&& apt-get clean \
108+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
109+
&& echo "Downloading FSL ..." \
110+
&& curl -sSL https://fsl.fmrib.ox.ac.uk/fsldownloads/fsl-5.0.10-centos6_64.tar.gz \
111+
| tar zx -C /opt \
112+
&& /bin/bash /opt/fsl/etc/fslconf/fslpython_install.sh -q -f /opt/fsl \
113+
&& sed -i '$iecho Some packages in this Docker container are non-free' $ND_ENTRYPOINT \
114+
&& sed -i '$iecho If you are considering commercial use of this container, please consult the relevant license:' $ND_ENTRYPOINT \
115+
&& sed -i '$iecho https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Licence' $ND_ENTRYPOINT \
116+
&& sed -i '$isource $FSLDIR/etc/fslconf/fsl.sh' $ND_ENTRYPOINT
117+
ENV FSLDIR=/opt/fsl \
118+
PATH=/opt/fsl/bin:$PATH
119+
120+
# User-defined instruction
121+
RUN rm -rf /opt/fsl/bin/FSLeyes /opt/fsl/data/first /opt/fsl/fslpython
122+
101123
#--------------------------
102124
# Install FreeSurfer v6.0.0
103125
#--------------------------
@@ -210,15 +232,6 @@ WORKDIR /repos
210232
# User-defined instruction
211233
RUN cd /repos && git clone https://github.com/neuro-data-science/neuroviz.git && git clone https://github.com/neuro-data-science/neuroML.git && git clone https://github.com/ReproNim/reproducible-imaging.git && git clone https://github.com/miykael/nipype_tutorial.git && git clone https://github.com/jmumford/nhwEfficiency.git && git clone https://github.com/jmumford/R-tutorial.git
212234

213-
# User-defined instruction
214-
ENV FSLDIR="/usr/share/fsl"
215-
216-
# User-defined instruction
217-
RUN . ${FSLDIR}/5.0/etc/fslconf/fsl.sh
218-
219-
# User-defined instruction
220-
ENV PATH="${FSLDIR}/5.0/bin:${PATH}"
221-
222235
# User-defined instruction
223236
ENV PATH="${PATH}:/usr/lib/rstudio-server/bin"
224237

@@ -246,7 +259,6 @@ RUN echo '{ \
246259
\n [ \
247260
\n "install", \
248261
\n [ \
249-
\n "fsl", \
250262
\n "dcm2niix", \
251263
\n "convert3d", \
252264
\n "ants", \
@@ -280,6 +292,16 @@ RUN echo '{ \
280292
\n } \
281293
\n ], \
282294
\n [ \
295+
\n "fsl", \
296+
\n { \
297+
\n "version": "5.0.10" \
298+
\n } \
299+
\n ], \
300+
\n [ \
301+
\n "instruction", \
302+
\n "RUN rm -rf /opt/fsl/bin/FSLeyes /opt/fsl/data/first /opt/fsl/fslpython" \
303+
\n ], \
304+
\n [ \
283305
\n "freesurfer", \
284306
\n { \
285307
\n "version": "6.0.0", \
@@ -368,18 +390,6 @@ RUN echo '{ \
368390
\n ], \
369391
\n [ \
370392
\n "instruction", \
371-
\n "ENV FSLDIR=\"/usr/share/fsl\"" \
372-
\n ], \
373-
\n [ \
374-
\n "instruction", \
375-
\n "RUN . ${FSLDIR}/5.0/etc/fslconf/fsl.sh" \
376-
\n ], \
377-
\n [ \
378-
\n "instruction", \
379-
\n "ENV PATH=\"${FSLDIR}/5.0/bin:${PATH}\"" \
380-
\n ], \
381-
\n [ \
382-
\n "instruction", \
383393
\n "ENV PATH=\"${PATH}:/usr/lib/rstudio-server/bin\" " \
384394
\n ], \
385395
\n [ \
@@ -391,7 +401,7 @@ RUN echo '{ \
391401
\n "RUN bash -c \"echo c.NotebookApp.ip = \\'0.0.0.0\\' > ~/.jupyter/jupyter_notebook_config.py\" " \
392402
\n ] \
393403
\n ], \
394-
\n "generation_timestamp": "2017-09-03 17:45:24", \
404+
\n "generation_timestamp": "2017-09-03 18:36:53", \
395405
\n "neurodocker_version": "0.2.0-30-g4b9bd64" \
396406
\n}' > /neurodocker/neurodocker_specs.json
397407

create_dockerfile.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66
docker run --rm kaczmarj/neurodocker generate -b neurodebian:stretch-non-free -p apt \
77
--instruction "RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -" \
8-
--install fsl dcm2niix convert3d ants graphviz tree git-annex-standalone vim emacs-nox nano less ncdu tig git-annex-remote-rclone build-essential nodejs r-recommended psmisc libapparmor1 sudo dc \
8+
--install dcm2niix convert3d ants graphviz tree git-annex-standalone vim emacs-nox nano less ncdu tig git-annex-remote-rclone build-essential nodejs r-recommended psmisc libapparmor1 sudo dc \
99
--instruction "RUN apt-get update && apt-get install -yq xvfb mesa-utils libgl1-mesa-dri && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* " \
1010
--afni version=latest \
11+
--fsl version=5.0.10 \
12+
--instruction "RUN rm -rf /opt/fsl/bin/FSLeyes /opt/fsl/data/first /opt/fsl/fslpython" \
1113
--freesurfer version=6.0.0 min=True \
1214
--spm version=12 matlab_version=R2017a \
1315
--instruction "RUN curl -sSL https://dl.dropbox.com/s/lfuppfhuhi1li9t/cifti-data.tgz?dl=0 | tar zx -C / " \
@@ -30,9 +32,6 @@ docker run --rm kaczmarj/neurodocker generate -b neurodebian:stretch-non-free -p
3032
--instruction "RUN curl -sSL https://osf.io/dhzv7/download?version=3 | tar zx -C /data/ds000114/derivatives/fmriprep" \
3133
--workdir /repos \
3234
--instruction "RUN cd /repos && git clone https://github.com/neuro-data-science/neuroviz.git && git clone https://github.com/neuro-data-science/neuroML.git && git clone https://github.com/ReproNim/reproducible-imaging.git && git clone https://github.com/miykael/nipype_tutorial.git && git clone https://github.com/jmumford/nhwEfficiency.git && git clone https://github.com/jmumford/R-tutorial.git" \
33-
--instruction "ENV FSLDIR=\"/usr/share/fsl\"" \
34-
--instruction "RUN . \${FSLDIR}/5.0/etc/fslconf/fsl.sh" \
35-
--instruction "ENV PATH=\"\${FSLDIR}/5.0/bin:\${PATH}\"" \
3635
--instruction "ENV PATH=\"\${PATH}:/usr/lib/rstudio-server/bin\" " \
3736
--instruction "ENV LD_LIBRARY_PATH=\"/usr/lib/R/lib:\${LD_LIBRARY_PATH}\" " \
3837
--instruction "RUN bash -c \"echo c.NotebookApp.ip = \'0.0.0.0\' > ~/.jupyter/jupyter_notebook_config.py\" " \

0 commit comments

Comments
 (0)