5
5
# pull request on our GitHub repository:
6
6
# https://github.com/kaczmarj/neurodocker
7
7
#
8
- # Timestamp: 2017-09-03 17:45:24
8
+ # Timestamp: 2017-09-03 18:36:53
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -36,8 +36,7 @@ ENTRYPOINT ["/neurodocker/startup.sh"]
36
36
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
37
37
38
38
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 \
41
40
convert3d \
42
41
ants \
43
42
graphviz \
@@ -98,6 +97,29 @@ RUN apt-get update -qq && apt-get install -yq --no-install-recommends ed gsl-bin
98
97
&& /opt/afni/rPkgsInstall -pkgs ALL \
99
98
&& rm -rf /tmp/*
100
99
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
+
101
123
# --------------------------
102
124
# Install FreeSurfer v6.0.0
103
125
# --------------------------
@@ -210,15 +232,6 @@ WORKDIR /repos
210
232
# User-defined instruction
211
233
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
212
234
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
-
222
235
# User-defined instruction
223
236
ENV PATH="${PATH}:/usr/lib/rstudio-server/bin"
224
237
@@ -246,7 +259,6 @@ RUN echo '{ \
246
259
\n [ \
247
260
\n "install", \
248
261
\n [ \
249
- \n "fsl", \
250
262
\n "dcm2niix", \
251
263
\n "convert3d", \
252
264
\n "ants", \
@@ -280,6 +292,16 @@ RUN echo '{ \
280
292
\n } \
281
293
\n ], \
282
294
\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 [ \
283
305
\n "freesurfer", \
284
306
\n { \
285
307
\n "version": "6.0.0", \
@@ -368,18 +390,6 @@ RUN echo '{ \
368
390
\n ], \
369
391
\n [ \
370
392
\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", \
383
393
\n "ENV PATH=\" ${PATH}:/usr/lib/rstudio-server/bin\" " \
384
394
\n ], \
385
395
\n [ \
@@ -391,7 +401,7 @@ RUN echo '{ \
391
401
\n "RUN bash -c \" echo c.NotebookApp.ip = \\ ' 0.0.0.0\\ ' > ~/.jupyter/jupyter_notebook_config.py\" " \
392
402
\n ] \
393
403
\n ], \
394
- \n "generation_timestamp": "2017-09-03 17:45:24 ", \
404
+ \n "generation_timestamp": "2017-09-03 18:36:53 ", \
395
405
\n "neurodocker_version": "0.2.0-30-g4b9bd64" \
396
406
\n }' > /neurodocker/neurodocker_specs.json
397
407
0 commit comments