Skip to content

Commit f0a75c9

Browse files
michaelmcdonnellmwprabhakk-mw
authored andcommitted
Updates MATLAB installation step to use the mpm executable shipped with the download archive.
1 parent a345307 commit f0a75c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alternates/matlab-container-offline-install/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ WORKDIR /home/matlab
5050
# If mpm fails to install successfully, then print the logfile in the terminal, otherwise clean up.
5151
# Pass in $HOME variable to install support packages into the user's HOME folder.
5252
RUN --mount=type=bind,from=archive,source=/,target=/mpm-download/ \
53-
sudo HOME=${HOME} /mpm-download/mpm install \
53+
sudo HOME=${HOME} /mpm-download/mpm/glnxa64/mpm install \
5454
--source=/mpm-download/archives \
5555
--destination=${MATLAB_INSTALL_LOCATION} \
5656
${MATLAB_PRODUCT_LIST} \

alternates/matlab-container-offline-install/archive.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm \
4343
--release=${MATLAB_RELEASE} \
4444
--destination=${MPM_DOWNLOAD_DESTINATION} \
4545
--products ${MATLAB_PRODUCT_LIST} \
46+
&& chmod +x ${MPM_DOWNLOAD_DESTINATION}/mpm/glnxa64/mpm \
4647
|| (echo "MPM Download Failure. See below for more information:" && cat /tmp/mathworks_root.log && false)
4748

4849
# Move MPM and the installation files to a scratch image
@@ -52,4 +53,3 @@ FROM scratch
5253
ARG MPM_DOWNLOAD_DESTINATION
5354

5455
COPY --from=download ${MPM_DOWNLOAD_DESTINATION} /
55-
COPY --from=download mpm /mpm

0 commit comments

Comments
 (0)