Skip to content

Add MATLAB_UPDATE arg to Dockerfile #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion alternates/non-interactive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# Use uppercase to specify the release, for example: ARG MATLAB_RELEASE=R2021b
ARG MATLAB_RELEASE=R2024b

# To (optionally) specify an update for the MATLAB release (e.g., "Update 1"), provide a value for MATLAB_UPDATE.
# Use uppercase to specify the update, for example: ARG MATLAB_UPDATE=U1. If empty, the latest update is pulled.
ARG MATLAB_UPDATE=""

# Specify the list of products to install into MATLAB.
ARG MATLAB_PRODUCT_LIST="MATLAB"

Expand All @@ -25,6 +29,7 @@ FROM mathworks/matlab-deps:${MATLAB_RELEASE}

# Declare build arguments to use at the current build stage.
ARG MATLAB_RELEASE
ARG MATLAB_UPDATE
ARG MATLAB_PRODUCT_LIST
ARG MATLAB_INSTALL_LOCATION

Expand Down Expand Up @@ -54,7 +59,7 @@ WORKDIR /home/matlab
RUN wget -q https://www.mathworks.com/mpm/glnxa64/mpm \
&& chmod +x mpm \
&& sudo HOME=${HOME} ./mpm install \
--release=${MATLAB_RELEASE} \
--release=${MATLAB_RELEASE}${MATLAB_UPDATE} \
--destination=${MATLAB_INSTALL_LOCATION} \
--products ${MATLAB_PRODUCT_LIST} \
|| (echo "MPM Installation Failure. See below for more information:" && cat /tmp/mathworks_root.log && false) \
Expand Down