Skip to content

Commit acd082c

Browse files
authored
Merge pull request miykael#121 from miykael/update_mcr_to2018b
ENH: update MCR from 2018a to 2018b
2 parents 0e784af + 813d9de commit acd082c

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated by Neurodocker version 0.4.0
2-
# Timestamp: 2018-07-14 20:29:37 UTC
1+
# Generated by Neurodocker version 0.4.2-dev
2+
# Timestamp: 2018-10-04 07:38:10 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -64,30 +64,31 @@ RUN apt-get update -qq \
6464
RUN sed -i '$isource /etc/fsl/fsl.sh' $ND_ENTRYPOINT
6565

6666
ENV FORCE_SPMMCR="1" \
67-
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" \
68-
MATLABCMD="/opt/matlabmcr-2018a/v94/toolbox/matlab"
67+
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" \
68+
MATLABCMD="/opt/matlabmcr-2018b/v95/toolbox/matlab"
6969
RUN apt-get update -qq \
7070
&& apt-get install -y -q --no-install-recommends \
7171
bc \
72+
libncurses5 \
7273
libxext6 \
7374
libxpm-dev \
7475
libxt6 \
7576
&& apt-get clean \
7677
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
7778
&& echo "Downloading MATLAB Compiler Runtime ..." \
78-
&& 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 \
79+
&& 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 \
7980
&& unzip -q /tmp/mcr.zip -d /tmp/mcrtmp \
80-
&& /tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018a -mode silent -agreeToLicense yes \
81+
&& /tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018b -mode silent -agreeToLicense yes \
8182
&& rm -rf /tmp/* \
8283
&& echo "Downloading standalone SPM ..." \
83-
&& 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 \
84+
&& 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 \
8485
&& unzip -q /tmp/spm12.zip -d /tmp \
8586
&& mkdir -p /opt/spm12-dev \
8687
&& mv /tmp/spm12/* /opt/spm12-dev/ \
8788
&& chmod -R 777 /opt/spm12-dev \
8889
&& rm -rf /tmp/* \
89-
&& /opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94 quit \
90-
&& sed -i '$iexport SPMMCRCMD=\"/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94 script\"' $ND_ENTRYPOINT
90+
&& /opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 quit \
91+
&& sed -i '$iexport SPMMCRCMD=\"/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 script\"' $ND_ENTRYPOINT
9192

9293
RUN useradd --no-user-group --create-home --shell /bin/bash neuro
9394
USER neuro
@@ -122,7 +123,7 @@ RUN export PATH="/opt/miniconda-latest/bin:$PATH" \
122123
nb_conda \
123124
&& sync && conda clean -tipsy && sync \
124125
&& bash -c "source activate neuro \
125-
&& pip install --no-cache-dir \
126+
&& pip install --no-cache-dir \
126127
https://github.com/nipy/nipype/tarball/master \
127128
https://github.com/INCF/pybids/tarball/master \
128129
nilearn \

Singularity

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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-04 07:38:11 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -61,25 +61,26 @@ sed -i '$isource /etc/fsl/fsl.sh' $ND_ENTRYPOINT
6161
apt-get update -qq
6262
apt-get install -y -q --no-install-recommends \
6363
bc \
64+
libncurses5 \
6465
libxext6 \
6566
libxpm-dev \
6667
libxt6
6768
apt-get clean
6869
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
6970
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
71+
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
7172
unzip -q /tmp/mcr.zip -d /tmp/mcrtmp
72-
/tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018a -mode silent -agreeToLicense yes
73+
/tmp/mcrtmp/install -destinationFolder /opt/matlabmcr-2018b -mode silent -agreeToLicense yes
7374
rm -rf /tmp/*
7475
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
76+
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
7677
unzip -q /tmp/spm12.zip -d /tmp
7778
mkdir -p /opt/spm12-dev
7879
mv /tmp/spm12/* /opt/spm12-dev/
7980
chmod -R 777 /opt/spm12-dev
8081
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
82+
/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 quit
83+
sed -i '$iexport SPMMCRCMD=\"/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95 script\"' $ND_ENTRYPOINT
8384

8485
useradd --no-user-group --create-home --shell /bin/bash neuro
8586
su - neuro
@@ -112,7 +113,7 @@ conda install -y -q --name neuro \
112113
nb_conda
113114
sync && conda clean -tipsy && sync
114115
bash -c "source activate neuro
115-
pip install --no-cache-dir \
116+
pip install --no-cache-dir \
116117
https://github.com/nipy/nipype/tarball/master \
117118
https://github.com/INCF/pybids/tarball/master \
118119
nilearn \
@@ -306,8 +307,8 @@ export LANG="en_US.UTF-8"
306307
export LC_ALL="en_US.UTF-8"
307308
export ND_ENTRYPOINT="/neurodocker/startup.sh"
308309
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"
310+
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"
311+
export MATLABCMD="/opt/matlabmcr-2018b/v95/toolbox/matlab"
311312
export CONDA_DIR="/opt/miniconda-latest"
312313
export PATH="/opt/miniconda-latest/bin:$PATH"
313314

notebooks/advanced_spmmcr.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"outputs": [],
1717
"source": [
1818
"from nipype.interfaces import spm\n",
19-
"matlab_cmd = '/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018a/v94/ script'\n",
19+
"matlab_cmd = '/opt/spm12-dev/run_spm12.sh /opt/matlabmcr-2018b/v95/ script'\n",
2020
"spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)"
2121
]
2222
},

0 commit comments

Comments
 (0)