File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 20
20
{%- endif -%}
21
21
{% endfor %}
22
22
apt-get clean
23
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
23
+ rm -rf /var/lib/apt/lists/*
24
24
"""
25
25
apt_install = jinja2 .Template (apt_install )
26
26
33
33
{%- endif -%}
34
34
{% endfor %}
35
35
yum clean packages
36
- rm -rf /var/cache/yum/* /tmp/* /var/tmp/*
36
+ rm -rf /var/cache/yum/*
37
37
"""
38
38
yum_install = jinja2 .Template (yum_install )
39
39
44
44
{% endfor -%}
45
45
apt-get install -f
46
46
apt-get clean
47
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
47
+ rm -rf /var/lib/apt/lists/*
48
48
"""
49
49
deb_install = jinja2 .Template (deb_install )
50
50
Original file line number Diff line number Diff line change @@ -30,16 +30,18 @@ generic:
30
30
LD_LIBRARY_PATH : " $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:{{ matlabmcr.install_path }}/{{ matlabmcr.mcr_version }}/runtime/glnxa64:{{ matlabmcr.install_path }}/{{ matlabmcr.mcr_version }}/bin/glnxa64:{{ matlabmcr.install_path }}/{{ matlabmcr.mcr_version }}/sys/os/glnxa64:{{ matlabmcr.install_path }}/{{ matlabmcr.mcr_version }}/extern/bin/glnxa64"
31
31
MATLABCMD : " {{ matlabmcr.install_path }}/{{ matlabmcr.mcr_version }}/toolbox/matlab"
32
32
instructions : |
33
+ export TMPDIR="$(mktemp -d)"
33
34
{{ matlabmcr.install_dependencies() }}
34
35
echo "Downloading MATLAB Compiler Runtime ..."
35
36
{% if matlabmcr.version == "2010a" -%}
36
37
{{ matlabmcr.install_debs() }}
37
- curl {{ matlabmcr.curl_opts }} -o /tmp/ MCRInstaller.bin {{ matlabmcr.binaries_url }}
38
- chmod +x /tmp/ MCRInstaller.bin
39
- /tmp/ MCRInstaller.bin -silent -P installLocation="{{ matlabmcr.install_path }}"
38
+ curl {{ matlabmcr.curl_opts }} -o "$TMPDIR/ MCRInstaller.bin" {{ matlabmcr.binaries_url }}
39
+ chmod +x "$TMPDIR/ MCRInstaller.bin"
40
+ "$TMPDIR/ MCRInstaller.bin" -silent -P installLocation="{{ matlabmcr.install_path }}"
40
41
{% else -%}
41
- curl {{ matlabmcr.curl_opts }} -o /tmp/ mcr.zip {{ matlabmcr.binaries_url }}
42
- unzip -q /tmp/ mcr.zip -d /tmp/ mcrtmp
43
- /tmp/ mcrtmp/install -destinationFolder {{ matlabmcr.install_path }} -mode silent -agreeToLicense yes
42
+ curl {{ matlabmcr.curl_opts }} -o "$TMPDIR/ mcr.zip" {{ matlabmcr.binaries_url }}
43
+ unzip -q "$TMPDIR/ mcr.zip" -d "$TMPDIR/ mcrtmp"
44
+ "$TMPDIR/ mcrtmp/install" -destinationFolder {{ matlabmcr.install_path }} -mode silent -agreeToLicense yes
44
45
{% endif -%}
45
- rm -rf /tmp/*
46
+ rm -rf "$TMPDIR"
47
+ unset TMPDIR
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ generic:
31
31
unzip /tmp/mni_90c.zip -d {{ minc.install_path }}/share/icbm152_model_09c
32
32
sed -i 's+MINC_TOOLKIT=/opt/minc+MINC_TOOLKIT={{ minc.install_path }}+g' {{ minc.install_path }}/minc-toolkit-config.sh
33
33
sed -i '$isource {{ minc.install_path }}/minc-toolkit-config.sh' $ND_ENTRYPOINT
34
- rm -rf /tmp/*
34
+ rm -rf /tmp/mni *
You can’t perform that action at this time.
0 commit comments