Skip to content

Commit

Permalink
Updates MATLAB installation step to use the mpm executable shipped wi…
Browse files Browse the repository at this point in the history
…th the download archive.
  • Loading branch information
michaelmcdonnellmw authored and prabhakk-mw committed Jan 9, 2025
1 parent a345307 commit f0a75c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alternates/matlab-container-offline-install/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ WORKDIR /home/matlab
# If mpm fails to install successfully, then print the logfile in the terminal, otherwise clean up.
# Pass in $HOME variable to install support packages into the user's HOME folder.
RUN --mount=type=bind,from=archive,source=/,target=/mpm-download/ \
sudo HOME=${HOME} /mpm-download/mpm install \
sudo HOME=${HOME} /mpm-download/mpm/glnxa64/mpm install \
--source=/mpm-download/archives \
--destination=${MATLAB_INSTALL_LOCATION} \
${MATLAB_PRODUCT_LIST} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm \
--release=${MATLAB_RELEASE} \
--destination=${MPM_DOWNLOAD_DESTINATION} \
--products ${MATLAB_PRODUCT_LIST} \
&& chmod +x ${MPM_DOWNLOAD_DESTINATION}/mpm/glnxa64/mpm \
|| (echo "MPM Download Failure. See below for more information:" && cat /tmp/mathworks_root.log && false)

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

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

0 comments on commit f0a75c9

Please sign in to comment.