|
1 |
| -# Generated by Neurodocker version 0.4.1-dev |
2 |
| -# Timestamp: 2018-09-27 11:07:19 UTC |
| 1 | +# Generated by Neurodocker version 0.4.2-dev |
| 2 | +# Timestamp: 2018-10-09 20:28:34 UTC |
3 | 3 | #
|
4 | 4 | # Thank you for using Neurodocker. If you discover any issues
|
5 | 5 | # or ways to improve this software, please submit an issue or
|
@@ -61,25 +61,27 @@ sed -i '$isource /etc/fsl/fsl.sh' $ND_ENTRYPOINT
|
61 | 61 | apt-get update -qq
|
62 | 62 | apt-get install -y -q --no-install-recommends \
|
63 | 63 | bc \
|
| 64 | + libncurses5 \ |
64 | 65 | libxext6 \
|
| 66 | + libxmu6 \ |
65 | 67 | libxpm-dev \
|
66 | 68 | libxt6
|
67 | 69 | apt-get clean
|
68 | 70 | rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
69 | 71 | echo "Downloading MATLAB Compiler Runtime ..."
|
70 |
| -curl -fsSL --retry 5 -o /tmp/mcr.zip https://ssd.mathworks.com/supportfiles/downloads/R2018a/deployment_files/R2018a/installers/glnxa64/MCR_R2018a_glnxa64_installer.zip |
| 72 | +curl -fsSL --retry 5 -o /tmp/mcr.zip https://ssd.mathworks.com/supportfiles/downloads/R2018b/deployment_files/R2018b/installers/glnxa64/MCR_R2018b_glnxa64_installer.zip |
71 | 73 | unzip -q /tmp/mcr.zip -d /tmp/mcrtmp
|
72 |
| -/tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018a -mode silent -agreeToLicense yes |
| 74 | +/tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018b -mode silent -agreeToLicense yes |
73 | 75 | rm -rf /tmp/*
|
74 | 76 | echo "Downloading standalone SPM ..."
|
75 |
| -curl -fsSL --retry 5 -o /tmp/spm12.zip http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/spm12_latest_Linux_R2018a.zip |
| 77 | +curl -fsSL --retry 5 -o /tmp/spm12.zip http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/spm12_latest_Linux_R2018b.zip |
76 | 78 | unzip -q /tmp/spm12.zip -d /tmp
|
77 | 79 | mkdir -p /opt/spm12-dev
|
78 | 80 | mv /tmp/spm12/* /opt/spm12-dev/
|
79 | 81 | chmod -R 777 /opt/spm12-dev
|
80 | 82 | rm -rf /tmp/*
|
81 |
| -/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94 quit |
82 |
| -sed -i '$iexport SPMMCRCMD=\"/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94 script\"' $ND_ENTRYPOINT |
| 83 | +/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 quit |
| 84 | +sed -i '$iexport SPMMCRCMD=\"/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 script\"' $ND_ENTRYPOINT |
83 | 85 |
|
84 | 86 | useradd --no-user-group --create-home --shell /bin/bash neuro
|
85 | 87 | su - neuro
|
@@ -112,7 +114,7 @@ conda install -y -q --name neuro \
|
112 | 114 | nb_conda
|
113 | 115 | sync && conda clean -tipsy && sync
|
114 | 116 | bash -c "source activate neuro
|
115 |
| - pip install --no-cache-dir \ |
| 117 | + pip install --no-cache-dir \ |
116 | 118 | https://github.com/nipy/nipype/tarball/master \
|
117 | 119 | https://github.com/INCF/pybids/tarball/master \
|
118 | 120 | nilearn \
|
@@ -141,6 +143,8 @@ bash -c 'source activate neuro && cd /data && datalad install -r ///workshops/ni
|
141 | 143 |
|
142 | 144 | 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
|
143 | 145 |
|
| 146 | +find /home/neuro/nipype_tutorial -maxdepth 2 -name "*.ipynb" -exec sed -i -e 's/"display_name": "Python \[default\]"/"display_name": "Python \[conda env:neuro\]"/g' -e 's/"name": "python3"/"name": "conda-env-neuro-py"/g' {} + |
| 147 | + |
144 | 148 | su - root
|
145 | 149 |
|
146 | 150 | chown -R neuro /home/neuro/nipype_tutorial
|
@@ -275,6 +279,10 @@ echo '{
|
275 | 279 | \n ]
|
276 | 280 | \n ],
|
277 | 281 | \n [
|
| 282 | +\n "run", |
| 283 | +\n "find /home/neuro/nipype_tutorial -maxdepth 2 -name \"*.ipynb\" -exec sed -i -e '"'"'s/\"display_name\": \"Python \\[default\\]\"/\"display_name\": \"Python \\[conda env:neuro\\]\"/g'"'"' -e '"'"'s/\"name\": \"python3\"/\"name\": \"conda-env-neuro-py\"/g'"'"' {} +" |
| 284 | +\n ], |
| 285 | +\n [ |
278 | 286 | \n "user",
|
279 | 287 | \n "root"
|
280 | 288 | \n ],
|
@@ -306,8 +314,8 @@ export LANG="en_US.UTF-8"
|
306 | 314 | export LC_ALL="en_US.UTF-8"
|
307 | 315 | export ND_ENTRYPOINT="/neurodocker/startup.sh"
|
308 | 316 | export FORCE_SPMMCR="1"
|
309 |
| -export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/opt/matlabmcr-2018a/v94/runtime/glnxa64:/opt/matlabmcr-2018a/v94/bin/glnxa64:/opt/matlabmcr-2018a/v94/sys/os/glnxa64:/opt/matlabmcr-2018a/v94/extern/bin/glnxa64" |
310 |
| -export MATLABCMD="/opt/matlabmcr-2018a/v94/toolbox/matlab" |
| 317 | +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/opt/matlabmcr-2018b/v95/runtime/glnxa64:/opt/matlabmcr-2018b/v95/bin/glnxa64:/opt/matlabmcr-2018b/v95/sys/os/glnxa64:/opt/matlabmcr-2018b/v95/extern/bin/glnxa64" |
| 318 | +export MATLABCMD="/opt/matlabmcr-2018b/v95/toolbox/matlab" |
311 | 319 | export CONDA_DIR="/opt/miniconda-latest"
|
312 | 320 | export PATH="/opt/miniconda-latest/bin:$PATH"
|
313 | 321 |
|
|
0 commit comments