1
1
# Generated by Neurodocker v0.2.0-15-g89db2ca.
2
2
#
3
- # Thank you for using Neurodocker. If you discover any issues
4
- # or ways to improve this software, please submit an issue or
3
+ # Thank you for using Neurodocker. If you discover any issues
4
+ # or ways to improve this software, please submit an issue or
5
5
# pull request on our GitHub repository:
6
6
# https://github.com/kaczmarj/neurodocker
7
7
#
8
- # Timestamp: 2017-09-01 15:15:46
8
+ # Timestamp: 2017-09-03 11:54:59
9
9
10
10
FROM neurodebian:stretch-non-free
11
11
@@ -35,7 +35,8 @@ ENTRYPOINT ["/neurodocker/startup.sh"]
35
35
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
36
36
37
37
RUN apt-get update -qq \
38
- && apt-get install -y -q --no-install-recommends dcm2niix \
38
+ && apt-get install -y -q --no-install-recommends fsl \
39
+ dcm2niix \
39
40
convert3d \
40
41
ants \
41
42
graphviz \
@@ -59,13 +60,42 @@ RUN apt-get update -qq \
59
60
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
60
61
61
62
# User-defined instruction
62
- 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/*
63
+ 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/*
63
64
64
- RUN apt-get update -qq \
65
- && apt-get install -y -q --no-install-recommends afni \
66
- fsl \
65
+ # --------------------
66
+ # Install AFNI latest
67
+ # --------------------
68
+ ENV PATH=/opt/afni:$PATH
69
+ RUN apt-get update -qq && apt-get install -yq --no-install-recommends ed gsl-bin libglu1-mesa-dev libglib2.0-0 libglw1-mesa \
70
+ libgomp1 libjpeg62 libxm4 netpbm tcsh xfonts-base xvfb \
71
+ && libs_path=/usr/lib/x86_64-linux-gnu \
72
+ && if [ -f $libs_path/libgsl.so.19 ]; then \
73
+ ln $libs_path/libgsl.so.19 $libs_path/libgsl.so.0; \
74
+ fi \
75
+ # Install libxp (not in all ubuntu/debian repositories) \
76
+ && apt-get install -yq --no-install-recommends libxp6 \
77
+ || /bin/bash -c " \
78
+ curl --retry 5 -o /tmp/libxp6.deb -sSL http://mirrors.kernel.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb \
79
+ && dpkg -i /tmp/libxp6.deb && rm -f /tmp/libxp6.deb" \
80
+ # Install libpng12 (not in all ubuntu/debian repositories) \
81
+ && apt-get install -yq --no-install-recommends libpng12-0 \
82
+ || /bin/bash -c " \
83
+ curl -o /tmp/libpng12.deb -sSL http://mirrors.kernel.org/debian/pool/main/libp/libpng/libpng12-0_1.2.49-1%2Bdeb7u2_amd64.deb \
84
+ && dpkg -i /tmp/libpng12.deb && rm -f /tmp/libpng12.deb" \
85
+ # Install R \
86
+ && apt-get install -yq --no-install-recommends \
87
+ r-base-dev r-cran-rmpi \
88
+ || /bin/bash -c " \
89
+ curl -o /tmp/install_R.sh -sSL https://gist.githubusercontent.com/kaczmarj/8e3792ae1af70b03788163c44f453b43/raw/0577c62e4771236adf0191c826a25249eb69a130/R_installer_debian_ubuntu.sh \
90
+ && /bin/bash /tmp/install_R.sh" \
67
91
&& apt-get clean \
68
- && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
92
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
93
+ && echo "Downloading AFNI ..." \
94
+ && mkdir -p /opt/afni \
95
+ && curl -sSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
96
+ | tar zx -C /opt/afni --strip-components=1 \
97
+ && /opt/afni/rPkgsInstall -pkgs ALL \
98
+ && rm -rf /tmp/*
69
99
70
100
# --------------------------
71
101
# Install FreeSurfer v6.0.0
@@ -106,16 +136,7 @@ ENV MATLABCMD=/opt/mcr/v92/toolbox/matlab \
106
136
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/opt/mcr/v92/runtime/glnxa64:/opt/mcr/v92/bin/glnxa64:/opt/mcr/v92/sys/os/glnxa64:$LD_LIBRARY_PATH
107
137
108
138
# User-defined instruction
109
- RUN bash -c "curl -sSL http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu11.2_amd64.deb > libssl1.0.0_1.0.2g-1ubuntu11.2_amd64.deb && dpkg -i libssl1.0.0_1.0.2g-1ubuntu11.2_amd64.deb && rm libssl1.0.0_1.0.2g-1ubuntu11.2_amd64.deb"
110
-
111
- # User-defined instruction
112
- RUN bash -c "curl -sSL http://download2.rstudio.org/rstudio-server-$(curl https://s3.amazonaws.com/rstudio-server/current.ver)-amd64.deb >> rstudio-server-amd64.deb && dpkg -i rstudio-server-amd64.deb && rm rstudio-server-amd64.deb"
113
-
114
- # User-defined instruction
115
- RUN Rscript -e 'install.packages(c("neuRosim", "ggplot2", "fmri", "dplyr", "tidyr", "Lahman", "data.table", "readr"), repos = "http://cran.case.edu")'
116
-
117
- # User-defined instruction
118
- RUN curl -sSL https://dl.dropbox.com/s/lfuppfhuhi1li9t/cifti-data.tgz?dl=0 | tar zx -C /
139
+ RUN curl -sSL https://dl.dropbox.com/s/lfuppfhuhi1li9t/cifti-data.tgz?dl=0 | tar zx -C /
119
140
120
141
# Create new user: neuro
121
142
RUN useradd --no-user-group --create-home --shell /bin/bash neuro
@@ -141,41 +162,31 @@ RUN echo "Downloading Miniconda installer ..." \
141
162
# Create conda environment
142
163
# -------------------------
143
164
RUN conda create -y -q --name neuro3 python=3.6 \
144
- jupyter jupyterlab traits pandas matplotlib scikit-learn seaborn swig reprozip reprounzip altair traitsui apptools configobj vtk jupyter_contrib_nbextensions bokeh scikit-image codecov nitime cython joblib jupyterhub=0.7.2 \
165
+ jupyter jupyterlab traits pandas matplotlib scikit-learn seaborn swig reprozip reprounzip altair traitsui apptools configobj jupyter_contrib_nbextensions bokeh scikit-image codecov nitime cython joblib jupyterhub=0.7.2 \
145
166
&& sync && conda clean -tipsy && sync \
146
167
&& /bin/bash -c "source activate neuro3 \
147
168
&& pip install -q --no-cache-dir \
148
- https://github.com/nipy/nibabel/archive/master.zip https://github.com/nipy/nipype/tarball/master nilearn https://github.com/INCF/pybids/archive/master.zip datalad dipy nipy duecredit pymvpa2 mayavi git+https://github.com/jupyterhub/nbserverproxy.git git+https://github.com/jupyterhub/nbrsessionproxy.git https://github.com/satra/mapalign/archive/master.zip pprocess " \
169
+ https://github.com/nipy/nibabel/archive/master.zip https://github.com/nipy/nipype/tarball/master nilearn https://github.com/INCF/pybids/archive/master.zip datalad dipy nipy duecredit pymvpa2 git+https://github.com/jupyterhub/nbserverproxy.git git+https://github.com/jupyterhub/nbrsessionproxy.git https://github.com/satra/mapalign/archive/master.zip pprocess " \
149
170
&& sync
150
171
ENV PATH=/opt/conda/envs/neuro3/bin:$PATH
151
172
152
173
# User-defined instruction
153
- RUN bash -c "source activate neuro3 && python -m ipykernel install --sys-prefix --name neuro3 --display-name Py3-neuro "
154
-
155
- # User-defined instruction
156
- RUN bash -c "source activate neuro3 && pip install --pre --upgrade ipywidgets pythreejs "
174
+ RUN bash -c "source activate neuro3 && python -m ipykernel install --sys-prefix --name neuro3 --display-name Py3-neuro"
157
175
158
176
# User-defined instruction
159
- RUN bash -c "source activate neuro3 && pip install --upgrade https://github.com/maartenbreddels/ipyvolume/archive/master.zip && jupyter nbextension install --py --sys-prefix ipyvolume && jupyter nbextension enable --py --sys-prefix ipyvolume "
177
+ RUN bash -c "source activate neuro3 && pip install --no-cache-dir --pre --upgrade ipywidgets pythreejs"
160
178
161
179
# User-defined instruction
162
- RUN bash -c "source activate neuro3 && jupyter nbextension enable rubberband/main && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main "
180
+ RUN bash -c "source activate neuro3 && pip install --no-cache-dir --upgrade https://github.com/maartenbreddels/ipyvolume/archive/master.zip && jupyter nbextension install --py --sys-prefix ipyvolume && jupyter nbextension enable --py --sys-prefix ipyvolume"
163
181
164
182
# User-defined instruction
165
- RUN bash -c "source activate neuro3 && jupyter serverextension enable --sys-prefix --py nbserverproxy && jupyter serverextension enable --sys-prefix --py nbrsessionproxy && jupyter nbextension install --sys-prefix --py nbrsessionproxy && jupyter nbextension enable --sys-prefix --py nbrsessionproxy "
183
+ RUN bash -c "source activate neuro3 && jupyter nbextension enable rubberband/main && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main"
166
184
167
185
# User-defined instruction
168
- RUN bash -c " source activate neuro3 && pip install git+https://github.com/data-8/gitautosync && jupyter serverextension enable --py nbgitautosync --sys-prefix "
169
-
170
- # -------------------------
171
- # Create conda environment
172
- # -------------------------
173
- RUN conda create -y -q --name afni27 python=2.7 \
174
- ipykernel \
175
- && sync && conda clean -tipsy && sync
186
+ RUN bash -c "source activate neuro3 && jupyter serverextension enable --sys-prefix --py nbserverproxy && jupyter serverextension enable --sys-prefix --py nbrsessionproxy && jupyter nbextension install --sys-prefix --py nbrsessionproxy && jupyter nbextension enable --sys-prefix --py nbrsessionproxy"
176
187
177
188
# User-defined instruction
178
- RUN bash -c "source activate neuro3 && python -m ipykernel install --sys-prefix --name afni27 --display-name Py2-afni "
189
+ RUN bash -c "source activate neuro3 && pip install --no-cache-dir git+https://github.com/data-8/gitautosync && jupyter serverextension enable --py nbgitautosync --sys-prefix"
179
190
180
191
USER root
181
192
@@ -188,22 +199,22 @@ RUN echo 'neuro:neuro' | chpasswd && usermod -aG sudo neuro
188
199
USER neuro
189
200
190
201
# User-defined instruction
191
- RUN bash -c "source activate neuro3 && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && datalad get -r -J4 ds000114/sub-0[12]/ses-test/ && datalad get -r ds000114/derivatives/fr*/ sub-0[12] && datalad get -r ds000114/derivatives/fm* /sub-0[12]/anat && datalad get -r ds000114/derivatives/fm* /sub-0[12]/ses-test && datalad get -r ds000114/derivatives/f*/fsaverage5 "
202
+ RUN bash -c "source activate neuro3 && cd /data && datalad install -r ///workshops/nih-2017/ds000114 && datalad get -r -J8 ds000114/sub-0[12]/ses-test/anat && datalad get -r -J8 ds000114/sub-0[12]/ses-test/func/*fingerfootlips* && datalad get -r -J8 ds000114/derivatives/fmriprep /sub-0[12]/anat && datalad get -r -J8 ds000114/derivatives/fmriprep /sub-0[12]/ses-test/func/*fingerfootlips* && datalad get -r -J8 ds000114/derivatives/freesurfer/sub-0[12] && datalad get -r -J8 ds000114/derivatives/freesurfer/fsaverage5"
192
203
193
204
# User-defined instruction
194
205
RUN curl -sSL https://osf.io/dhzv7/download?version=3 | tar zx -C /data/ds000114/derivatives/fmriprep
195
206
196
- WORKDIR /home/neuro
207
+ WORKDIR /repos
197
208
198
209
# User-defined instruction
199
210
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
200
211
201
212
# User-defined instruction
202
- ENV PATH="${PATH}:/usr/lib/rstudio-server/bin"
213
+ ENV PATH="${PATH}:/usr/lib/rstudio-server/bin"
203
214
204
215
# User-defined instruction
205
- ENV LD_LIBRARY_PATH="/usr/lib/R/lib:${LD_LIBRARY_PATH}"
216
+ ENV LD_LIBRARY_PATH="/usr/lib/R/lib:${LD_LIBRARY_PATH}"
206
217
207
218
# User-defined instruction
208
- RUN bash -c "echo c.NotebookApp.ip = \' 0.0.0.0\' > ~/.jupyter/jupyter_notebook_config.py"
219
+ RUN bash -c "echo c.NotebookApp.ip = \' 0.0.0.0\' > ~/.jupyter/jupyter_notebook_config.py"
209
220
0 commit comments