Skip to content

Commit 907ffeb

Browse files
authored
Add MATLAB_UPDATE arg to Dockerfile
Proposal for what was suggested on mathworks-ref-arch#122. I don't expect to be merged as is, as I understand it's WIP by the maintainers. I just wanted to give others a reference on how to solve it for now.
1 parent d46917f commit 907ffeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

alternates/non-interactive/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# Use uppercase to specify the release, for example: ARG MATLAB_RELEASE=R2021b
1414
ARG MATLAB_RELEASE=R2024b
1515

16+
# To (optionally) specify an update for the MATLAB release (e.g., "Update 1"), provide a value for MATLAB_UPDATE.
17+
# Use uppercase to specify the update, for example: ARG MATLAB_UPDATE=U1. If empty, the latest update is pulled.
18+
ARG MATLAB_UPDATE=""
19+
1620
# Specify the list of products to install into MATLAB.
1721
ARG MATLAB_PRODUCT_LIST="MATLAB"
1822

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

2630
# Declare build arguments to use at the current build stage.
2731
ARG MATLAB_RELEASE
32+
ARG MATLAB_UPDATE
2833
ARG MATLAB_PRODUCT_LIST
2934
ARG MATLAB_INSTALL_LOCATION
3035

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

0 commit comments

Comments
 (0)