Skip to content

Commit 1c3c73b

Browse files
Adds support for MATLAB R2025b
1 parent 487c6d2 commit 1c3c73b

19 files changed

+80
-74
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
matlab-release:
32+
- R2025b
3233
- R2025a
3334
- R2024b
3435
- R2024a
@@ -75,7 +76,7 @@ jobs:
7576
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
7677
7778
- name: Generate license file
78-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
79+
run: echo '${{ secrets.MATLAB_LICENSE_FILE }}' > ${{ env.LICENSE_FILE_PATH }}
7980

8081
- name: Test container
8182
env:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
matlab-release:
33+
- R2025b
3334
- R2025a
3435
- R2024b
3536
- R2024a
@@ -67,7 +68,7 @@ jobs:
6768
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
6869
6970
- name: Generate license file
70-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
71+
run: echo '${{ secrets.MATLAB_LICENSE_FILE }}' > ${{ env.LICENSE_FILE_PATH }}
7172

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
matlab-release:
36+
- R2025b
3637
- R2025a
3738
- R2024b
3839
- R2024a
@@ -91,7 +92,7 @@ jobs:
9192
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
9293
9394
- name: Generate license file
94-
run: echo '${{ secrets.MATLAB_LICENSE_FILE_R2025A }}' > ${{ env.LICENSE_FILE_PATH }}
95+
run: echo '${{ secrets.MATLAB_LICENSE_FILE }}' > ${{ env.LICENSE_FILE_PATH }}
9596

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
matlab-release:
35+
- R2025b
3536
- R2025a
3637
- R2024b
3738
- R2024a

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
matlab-release:
32+
- R2025b
3233
- R2025a
3334
- R2024b
3435
- R2024a

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
matlab-release:
31+
- R2025b
3132
- R2025a
3233
- R2024b
3334
- R2024a

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
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=R2025a
7+
# docker build --build-arg MATLAB_RELEASE=R2025b
88
# --build-arg MATLAB_PRODUCT_LIST="MATLAB Deep_Learning_Toolbox Symbolic_Math_Toolbox"
9-
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2025a"
9+
# --build-arg MATLAB_INSTALL_LOCATION="/opt/matlab/R2025b"
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=R2025a
15+
ARG MATLAB_RELEASE=R2025b
1616

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

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ cd matlab-dockerfile
3535

3636
Build container with a name and tag of your choice.
3737
```bash
38-
docker build -t matlab:R2025a .
38+
docker build -t matlab:R2025b .
3939
```
4040

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

4747
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.
4848

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

6666
| Argument Name | Default value | Description |
6767
|---|---|---|
68-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2025a | MATLAB release to install, for example, `R2023b`.|
68+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2025b | MATLAB release to install, for example, `R2023b`.|
6969
| [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).|
70-
| [MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location) | /opt/matlab/R2025a | Path to install MATLAB. |
70+
| [MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location) | /opt/matlab/R2025b | Path to install MATLAB. |
7171
| [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` |
7272

7373
Use these arguments with the the `docker build` command to customize your image.
@@ -82,24 +82,24 @@ docker build --build-arg MATLAB_RELEASE=R2019b -t matlab:R2019b .
8282
#### Build an Image with a Specific Set of Products
8383
For example, to build an image with MATLAB and Simulink®, use this command.
8484
```bash
85-
docker build --build-arg MATLAB_PRODUCT_LIST='MATLAB Simulink' -t matlab:R2025a .
85+
docker build --build-arg MATLAB_PRODUCT_LIST='MATLAB Simulink' -t matlab:R2025b .
8686
```
8787

8888
#### Build an Image with MATLAB Installed to a Specific Location
8989
For example, to build an image with MATLAB installed at /opt/matlab, use this command.
9090
```bash
91-
docker build --build-arg MATLAB_INSTALL_LOCATION='/opt/matlab' -t matlab:R2025a .
91+
docker build --build-arg MATLAB_INSTALL_LOCATION='/opt/matlab' -t matlab:R2025b .
9292
```
9393

9494
#### Build an Image Configured to Use a License Server
9595

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

101101
# Run the container without needing to pass license information.
102-
docker run --init --rm matlab:R2025a -batch ver
102+
docker run --init --rm matlab:R2025b -batch ver
103103
```
104104

105105
## Use the Network License Manager
@@ -131,7 +131,7 @@ With the `docker build` command, either:
131131

132132
```bash
133133
# Example
134-
docker build -t matlab:R2025a --build-arg LICENSE_SERVER=27000@MyServerName .
134+
docker build -t matlab:R2025b --build-arg LICENSE_SERVER=27000@MyServerName .
135135
```
136136
- Use the `network.lic` file.
137137
1. Place the `network.lic` file in the same folder as the Dockerfile.
@@ -140,41 +140,41 @@ With the `docker build` command, either:
140140

141141
```bash
142142
# Example
143-
docker build -t matlab:R2025a .
143+
docker build -t matlab:R2025b .
144144
```
145145

146146
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable.
147147

148148
```bash
149-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
149+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025b -batch ver
150150
```
151151

152152
## Run the Container
153153
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`.
154154
155155
```bash
156156
# Start MATLAB, print version information, and exit.
157-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025a -batch ver
157+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2025b -batch ver
158158
```
159159
160160
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.
161161
162162
### Run MATLAB in an Interactive Command Prompt
163163
To start the container and run MATLAB in an interactive command prompt, use this command.
164164
```bash
165-
docker run --init -it --rm matlab:R2025a
165+
docker run --init -it --rm matlab:R2025b
166166
```
167167
### Run MATLAB in Batch Mode
168168
To start the container, run a MATLAB command, and then exit, use this command.
169169
```bash
170170
# Container runs the command RAND in MATLAB and exits.
171-
docker run --init --rm matlab:R2025a -batch rand
171+
docker run --init --rm matlab:R2025b -batch rand
172172
```
173173
174174
### Run MATLAB with Startup Options
175175
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, use this command.
176176
```bash
177-
docker run --init -it --rm matlab:R2025a -logfile "logfilename.log"
177+
docker run --init -it --rm matlab:R2025b -logfile "logfilename.log"
178178
```
179179
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
180180
@@ -192,7 +192,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
192192
* Use the MATLAB Engine API for C and Fortran®
193193
* Use the Polyspace® 32-bit tcc compiler
194194
195-
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).
195+
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 R2025b, click [here](https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2025b/ubuntu24.04/Dockerfile).
196196
197197
These Dockerfiles contain commented lines with the libraries that support additional capabilities. Copy and uncomment these lines into your Dockerfile.
198198

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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=R2025a
5+
ARG MATLAB_RELEASE=R2025b
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: 7 additions & 7 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:R2025a .
28+
docker build -t matlab_with_add_ons:R2025b .
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:R2025a -batch ver
33+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2025b -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:R2025a -browser
39+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2025b -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:R2025a .
54+
docker build --build-arg ADDITIONAL_PRODUCTS="Deep_Learning_Toolbox" -t matlab_with_add_ons:R2025b .
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) | R2025a | MATLAB release to install, for example, `R2023b`.|
70+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | R2025b | 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:R2025a --build-arg LICENSE_SERVER=27000@MyServerName .
97+
docker build -t matlab_with_add_ons:R2025b --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:R2025a -batch ver
102+
docker run --init matlab_with_add_ons:R2025b -batch ver
103103
```
104104
## Run the Container
105105
The Docker container you build using this Dockerfile inherits run options from its base image.

0 commit comments

Comments
 (0)