Skip to content

Commit 435b6d8

Browse files
Adds support for MATLAB R2025a
1 parent b7b48f1 commit 435b6d8

File tree

17 files changed

+91
-79
lines changed

17 files changed

+91
-79
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022-2024 The MathWorks, Inc.
1+
# Copyright 2022-2025 The MathWorks, Inc.
22

33
name: Build, Test and Publish the Dockerfile
44

@@ -29,6 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
matlab-release:
32+
- R2025a
3233
- R2024b
3334
- R2024a
3435
- R2023b
@@ -74,7 +75,7 @@ jobs:
7475
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
7576
7677
- name: Generate license file
77-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2024B }}' > ${{ env.LICENSE_FILE_PATH }}
78+
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
7879

7980
- name: Test container
8081
env:

.github/workflows/from-matlab-docker-build-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The MathWorks, Inc.
1+
# Copyright 2023-2025 The MathWorks, Inc.
22

33
name: Build and Test the "Building on MATLAB Docker Image" Dockerfile
44

@@ -30,6 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
matlab-release:
33+
- R2025a
3334
- R2024b
3435
- R2024a
3536
- R2023b
@@ -66,7 +67,7 @@ jobs:
6667
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
6768
6869
- name: Generate license file
69-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2024B }}' > ${{ env.LICENSE_FILE_PATH }}
70+
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
7071

7172
- name: Test container
7273
working-directory: tests

.github/workflows/matlab-container-offline-install-build-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The MathWorks, Inc.
1+
# Copyright 2024-2025 The MathWorks, Inc.
22

33
name: Build and Test the "MATLAB Container Offline Install" Dockerfiles
44

@@ -33,6 +33,7 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
matlab-release:
36+
- R2025a
3637
- R2024b
3738
- R2024a
3839
- R2023b
@@ -90,7 +91,7 @@ jobs:
9091
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
9192
9293
- name: Generate license file
93-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2024B }}' > ${{ env.LICENSE_FILE_PATH }}
94+
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
9495

9596
- name: Test container
9697
working-directory: tests

.github/workflows/matlab-installer-build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The MathWorks, Inc.
1+
# Copyright 2023-2025 The MathWorks, Inc.
22

33
name: Build and Test the "MATLAB installer" Dockerfile
44

@@ -32,6 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
matlab-release:
35+
- R2025a
3536
- R2024b
3637
- R2024a
3738
- R2023b

.github/workflows/non-interactive-build-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 The MathWorks, Inc.
1+
# Copyright 2024-2025 The MathWorks, Inc.
22

33
name: Build and Test the "Non-Interactive" Dockerfile
44

@@ -29,6 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
matlab-release:
32+
- R2025a
3233
- R2024b
3334
- R2024a
3435
- R2023b

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Copyright 2019-2024 The MathWorks, Inc.
1+
# Copyright 2019-2025 The MathWorks, Inc.
22
# This Dockerfile allows you to build a Docker® image with MATLAB® installed using the MATLAB Package
33
# Manager. Use the optional build arguments to customize the version of MATLAB, list of products to
44
# install, and the location at which to install MATLAB.
55

66
# Here is an example docker build command with the optional build arguments.
7-
# docker build --build-arg MATLAB_RELEASE=R2024b
7+
# docker build --build-arg MATLAB_RELEASE=R2025a
88
# --build-arg MATLAB_PRODUCT_LIST="MATLAB Deep_Learning_Toolbox Symbolic_Math_Toolbox"
9-
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2024b"
9+
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2025a"
1010
# --build-arg [email protected]
1111
# -t my_matlab_image_name .
1212

1313
# To specify which MATLAB release to install in the container, edit the value of the MATLAB_RELEASE argument.
1414
# Use uppercase to specify the release, for example: ARG MATLAB_RELEASE=R2021b
15-
ARG MATLAB_RELEASE=R2024b
15+
ARG MATLAB_RELEASE=R2025a
1616

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

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ cd matlab-dockerfile
3333

3434
Build container with a name and tag of your choice.
3535
```bash
36-
docker build -t matlab:R2024b .
36+
docker build -t matlab:R2025a .
3737
```
3838

3939
Run the container. Test the container by running an example MATLAB command, such as `ver`.
4040
```bash
41-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
41+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
4242
```
43-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024b.
43+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2025a.
4444

4545
The example command `ver` displays the version number of MATLAB and other installed products. For more information, see [`ver`](https://www.mathworks.com/help/matlab/ref/ver.html). For more information on running the container, see the [Run the Container](#run-the-container) section.
4646

@@ -63,9 +63,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
6363

6464
| Argument Name | Default value | Description |
6565
|---|---|---|
66-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2024b | MATLAB release to install, for example, `R2023b`.|
66+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2025a | MATLAB release to install, for example, `R2023b`.|
6767
| [MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products) | MATLAB | Space-separated list of products to install, for example, `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`. For more information, see [MPM.md](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md).|
68-
| [MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location) | /opt/matlab/R2024b | Path to install MATLAB. |
68+
| [MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location) | /opt/matlab/R2025a | Path to install MATLAB. |
6969
| [LICENSE_SERVER](#build-an-image-configured-to-use-a-license-server) | *unset* | Port and hostname of the machine that is running the network license manager, using the `port@hostname` syntax. For example: `27000@MyServerName` |
7070

7171
Use these arguments with the the `docker build` command to customize your image.
@@ -80,24 +80,24 @@ docker build --build-arg MATLAB_RELEASE=R2019b -t matlab:R2019b .
8080
#### Build an Image with a Specific Set of Products
8181
For example, to build an image with MATLAB and Simulink®, use this command.
8282
```bash
83-
docker build --build-arg MATLAB_PRODUCT_LIST='MATLAB Simulink' -t matlab:R2024b .
83+
docker build --build-arg MATLAB_PRODUCT_LIST='MATLAB Simulink' -t matlab:R2025a .
8484
```
8585

8686
#### Build an Image with MATLAB Installed to a Specific Location
8787
For example, to build an image with MATLAB installed at /opt/matlab, use this command.
8888
```bash
89-
docker build --build-arg MATLAB_INSTALL_LOCATION='/opt/matlab' -t matlab:R2024b .
89+
docker build --build-arg MATLAB_INSTALL_LOCATION='/opt/matlab' -t matlab:R2025a .
9090
```
9191

9292
#### Build an Image Configured to Use a License Server
9393

9494
Including the license server information with the `docker build` command means you do not have to pass it when running the container.
9595
```bash
9696
# Build container with the license server.
97-
docker build --build-arg LICENSE_SERVER=27000@MyServerName -t matlab:R2024b .
97+
docker build --build-arg LICENSE_SERVER=27000@MyServerName -t matlab:R2025a .
9898

9999
# Run the container without needing to pass license information.
100-
docker run --init --rm matlab:R2024b -batch ver
100+
docker run --init --rm matlab:R2025a -batch ver
101101
```
102102

103103
## Use the Network License Manager
@@ -129,7 +129,7 @@ With the `docker build` command, either:
129129

130130
```bash
131131
# Example
132-
docker build -t matlab:R2024b --build-arg LICENSE_SERVER=27000@MyServerName .
132+
docker build -t matlab:R2025a --build-arg LICENSE_SERVER=27000@MyServerName .
133133
```
134134
- Use the `network.lic` file.
135135
1. Place the `network.lic` file in the same folder as the Dockerfile.
@@ -138,41 +138,41 @@ With the `docker build` command, either:
138138

139139
```bash
140140
# Example
141-
docker build -t matlab:R2024b .
141+
docker build -t matlab:R2025a .
142142
```
143143

144144
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable.
145145

146146
```bash
147-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
147+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
148148
```
149149

150150
## Run the Container
151151
If you did not provide the license server information when building the image, then provide it when running the container. Set the environment variable `MLM_LICENSE_FILE` using the `-e` flag, with the network license manager's location in the format `port@hostname`.
152152
153153
```bash
154154
# Start MATLAB, print version information, and exit.
155-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024b -batch ver
155+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
156156
```
157157
158158
You can run the container **without** specifying `MLM_LICENSE_FILE` if you provided the license server information when building the image, as shown in the examples below.
159159
160160
### Run MATLAB in an Interactive Command Prompt
161161
To start the container and run MATLAB in an interactive command prompt, use this command.
162162
```bash
163-
docker run --init -it --rm matlab:R2024b
163+
docker run --init -it --rm matlab:R2025a
164164
```
165165
### Run MATLAB in Batch Mode
166166
To start the container, run a MATLAB command, and then exit, use this command.
167167
```bash
168168
# Container runs the command RAND in MATLAB and exits.
169-
docker run --init --rm matlab:R2024b -batch rand
169+
docker run --init --rm matlab:R2025a -batch rand
170170
```
171171
172172
### Run MATLAB with Startup Options
173173
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, use this command.
174174
```bash
175-
docker run --init -it --rm matlab:R2024b -logfile "logfilename.log"
175+
docker run --init -it --rm matlab:R2025a -logfile "logfilename.log"
176176
```
177177
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
178178
@@ -190,7 +190,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
190190
* Use the MATLAB Engine API for C and Fortran®
191191
* Use the Polyspace® 32-bit tcc compiler
192192
193-
The [MATLAB Dependencies repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2024b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2024b/ubuntu22.04/Dockerfile).
193+
The [MATLAB Dependencies repository](https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps) lists Dockerfiles for various releases and platforms. To view the Dockerfile for R2025a, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2025a/ubuntu22.04/Dockerfile).
194194
195195
These Dockerfiles contain commented lines with the libraries that support additional capabilities. Copy and uncomment these lines into your Dockerfile.
196196
@@ -207,6 +207,6 @@ We encourage you to try this repository with your environment and provide feedba
207207
208208
----
209209
210-
Copyright 2021-2024 The MathWorks, Inc.
210+
Copyright 2021-2025 The MathWorks, Inc.
211211
212212
----

alternates/building-on-matlab-docker-image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright 2023-2024 The MathWorks, Inc.
1+
# Copyright 2023-2025 The MathWorks, Inc.
22

33
# To specify which MATLAB release to install in the container, edit the value of the MATLAB_RELEASE argument.
44
# Use uppercase to specify the release, for example: ARG MATLAB_RELEASE=R2021b
5-
ARG MATLAB_RELEASE=R2024b
5+
ARG MATLAB_RELEASE=R2025a
66

77
# Specify the extra products to install into the image. These products can either be toolboxes or support packages.
88
ARG ADDITIONAL_PRODUCTS="Symbolic_Math_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network"

alternates/building-on-matlab-docker-image/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ cd matlab-dockerfile/alternates/building-on-matlab-docker-image
2525
### Quick Start
2626
Build a container with a name and tag.
2727
```bash
28-
docker build -t matlab_with_add_ons:R2024b .
28+
docker build -t matlab_with_add_ons:R2025a .
2929
```
3030

3131
You can then run the container with the `batch` option. Test the container by running an example MATLAB command, such as `ver`, to display the installed toolboxes.
3232
```bash
33-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2024b -batch ver
33+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2025a -batch ver
3434
```
3535
You can check the installed support packages using the MATLAB command `matlabshared.supportpkg.getInstalled`.
3636

3737
You can also run the container with the `browser` option to access MATLAB in a browser.
3838
```bash
39-
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2024b -browser
39+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2025a -browser
4040
```
4141
For more information, see [Run the Container](#run-the-container).
4242

@@ -51,7 +51,7 @@ The `ADDITIONAL_PRODUCTS` argument must be a space-separated list surrounded by
5151
By default, `ADDITIONAL_PRODUCTS` includes example products, which you can replace.
5252
For example, to build an image containing MATLAB and the Deep Learning Toolbox™, use this command.
5353
```bash
54-
docker build --build-arg ADDITIONAL_PRODUCTS="Deep_Learning_Toolbox" -t matlab_with_add_ons:R2024b .
54+
docker build --build-arg ADDITIONAL_PRODUCTS="Deep_Learning_Toolbox" -t matlab_with_add_ons:R2025a .
5555
```
5656

5757
For a successful build, include at least one product.
@@ -67,7 +67,7 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
6767

6868
| Argument Name | Default value | Effect |
6969
|---|---|---|
70-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2024b | MATLAB release to install, for example, `R2023b`.|
70+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2025a | MATLAB release to install, for example, `R2023b`.|
7171
| [ADDITIONAL_PRODUCTS](#customize-products-to-install-using-matlab-package-manager-mpm) | `Symbolic_Math_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network` | Space-separated list of toolboxes and support packages to install. For more details, see [MATLAB Package Manager](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md).|
7272
| [LICENSE_SERVER](#build-an-image-with-license-server-information) | *unset* | Port and hostname of a machine that is running a Network License Manager, using the `port@hostname` syntax, for example, `27000@MyServerName`. To use this build argument, the corresponding lines must be uncommented in the Dockerfile. |
7373

@@ -94,12 +94,12 @@ server or the browser mode will not start successfully.
9494

9595
Build container with the license server.
9696
```bash
97-
docker build -t matlab_with_add_ons:R2024b --build-arg LICENSE_SERVER=27000@MyServerName .
97+
docker build -t matlab_with_add_ons:R2025a --build-arg LICENSE_SERVER=27000@MyServerName .
9898
```
9999

100100
Run the container, without needing to pass license information.
101101
```bash
102-
docker run --init matlab_with_add_ons:R2024b -batch ver
102+
docker run --init matlab_with_add_ons:R2025a -batch ver
103103
```
104104
## Run the Container
105105
The Docker container you build using this Dockerfile inherits run options from its base image.
@@ -122,6 +122,6 @@ We encourage you to try this repository with your environment and provide feedba
122122

123123
----
124124

125-
Copyright 2023-2024 The MathWorks, Inc.
125+
Copyright 2023-2025 The MathWorks, Inc.
126126

127127
----

alternates/matlab-container-offline-install/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Copyright 2024 The MathWorks, Inc.
1+
# Copyright 2024-2025 The MathWorks, Inc.
22
# This Dockerfile allows you to build a Docker® image with MATLAB® installed using the MATLAB Package
33
# Manager. Use the optional build arguments to customize the version of MATLAB, list of products to
44
# install, and the location at which to install MATLAB.
55

66
# Here is an example docker build command with the optional build arguments.
7-
# docker build --build-arg MATLAB_RELEASE=R2024b
7+
# docker build --build-arg MATLAB_RELEASE=R2025a
88
# --build-arg MATLAB_PRODUCT_LIST="MATLAB Deep_Learning_Toolbox Symbolic_Math_Toolbox"
9-
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2024b"
9+
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2025a"
1010
# -t my_matlab_image_name .
1111

1212
# To specify which MATLAB release to install in the container, edit the value of the MATLAB_RELEASE argument.
1313
# Use uppercase to specify the release, for example: ARG MATLAB_RELEASE=R2021b
14-
ARG MATLAB_RELEASE=R2024b
14+
ARG MATLAB_RELEASE=R2025a
1515

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

0 commit comments

Comments
 (0)