You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates MATLAB installation paths to consistenly use "/opt/matlab/R20XXY" as the default installation path, Silent installer workflows will continue to use "/usr/local/MATLAB" to match the behavior of the standard GUI based installer.
where `${matlab-release}` is a matlab release (e.g. `r2021a`, `r2021b`, etc..) .
21
+
where `${matlab-release}` is a matlab release (e.g. `R2021a`, `R2021b`, etc..) .
22
22
23
23
## Workflow Description
24
24
25
-
The workflow consists of a one-dimensional matrix of jobs. Each job builds, tests and publishes the container image for a different MATLAB release, starting from `r2020b`. To ensure that a failure in any job does not cancel other jobs, the `fail-fast` option is set to `false`.
25
+
The workflow consists of a one-dimensional matrix of jobs. Each job builds, tests and publishes the container image for a different MATLAB release, starting from `R2020b`. To ensure that a failure in any job does not cancel other jobs, the `fail-fast` option is set to `false`.
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,12 @@ cd matlab-dockerfile
27
27
28
28
Build container with a name and tag of your choice.
29
29
```bash
30
-
docker build -t matlab:r2024a.
30
+
docker build -t matlab:R2024a.
31
31
```
32
32
33
33
Run the container. Test the container by running an example MATLAB command such as ver.
34
34
```bash
35
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
35
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
36
36
```
37
37
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2024a.
38
38
@@ -57,9 +57,9 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
57
57
58
58
| Argument Name | Default value | Description |
59
59
|---|---|---|
60
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release you want to install, in lower-case. For example: `r2019b`|
60
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024a| The MATLAB release you want to install, in lower-case. For example: `R2019b`|
61
61
|[MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products)| MATLAB | Products to install as a space-separated list. For more information, see [MPM.md](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md). For example: `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`|
62
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/r2024a| The path to install MATLAB. |
62
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024a| The path to install MATLAB. |
63
63
|[LICENSE_SERVER](#build-an-image-configured-to-use-a-license-server)|*unset*| The port and hostname of the machine that is running the Network License Manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
64
64
65
65
Use these arguments with the the `docker build` command to customize your image.
@@ -68,30 +68,30 @@ Alternatively, you can change the default values for these arguments directly in
68
68
#### Build an Image for a Different Release of MATLAB
69
69
For example, to build an image for MATLAB R2019b, use this command.
1. Place the `network.lic` file in the same folder as the Dockerfile.
@@ -133,41 +133,41 @@ With the `docker build` command, either:
133
133
134
134
```bash
135
135
# Example
136
-
docker build -t matlab:r2024a.
136
+
docker build -t matlab:R2024a.
137
137
```
138
138
139
139
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable. For example:
140
140
141
141
```bash
142
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
142
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
143
143
```
144
144
145
145
## Run the Container
146
146
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`.
147
147
148
148
```bash
149
149
# Start MATLAB, print version information, and exit:
150
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2024a -batch ver
150
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:R2024a -batch ver
151
151
```
152
152
153
153
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.
154
154
155
155
### Run MATLAB in an Interactive Command Prompt
156
156
To start the container and run MATLAB in an interactive command prompt, execute:
157
157
```bash
158
-
docker run --init -it --rm matlab:r2024a
158
+
docker run --init -it --rm matlab:R2024a
159
159
```
160
160
### Run MATLAB in Batch Mode
161
161
To start the container, run a MATLAB command, and then exit, execute:
162
162
```bash
163
163
# Container runs the command RAND in MATLAB and exits.
164
-
docker run --init --rm matlab:r2024a -batch rand
164
+
docker run --init --rm matlab:R2024a -batch rand
165
165
```
166
166
167
167
### Run MATLAB with Startup Options
168
168
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, execute:
169
169
```bash
170
-
docker run --init -it --rm matlab:r2024a -logfile "logfilename.log"
170
+
docker run --init -it --rm matlab:R2024a -logfile "logfilename.log"
171
171
```
172
172
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html).
Copy file name to clipboardExpand all lines: alternates/building-on-matlab-docker-image/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,18 @@ cd matlab-dockerfile/alternates/building-on-matlab-docker-image
25
25
### Quick start
26
26
Build a container with a name and tag.
27
27
```bash
28
-
docker build -t matlab_with_add_ons:r2024a.
28
+
docker build -t matlab_with_add_ons:R2024a.
29
29
```
30
30
31
31
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.
32
32
```bash
33
-
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:r2024a -batch ver
33
+
docker run --init --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab_with_add_ons:R2024a -batch ver
34
34
```
35
35
You can check the installed support packages using the MATLAB command `matlabshared.supportpkg.getInstalled`.
36
36
37
37
You can also run the container with the "browser" option to access MATLAB in a browser.
38
38
```bash
39
-
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:r2024a -browser
39
+
docker run --init --rm -it -p 8888:8888 matlab_with_add_ons:R2024a -browser
40
40
```
41
41
For more information, see [Run the Container](#run-the-container).
42
42
@@ -51,7 +51,7 @@ The `ADDITIONAL_PRODUCTS` argument must be a space separated list surrounded by
51
51
By default, `ADDITIONAL_PRODUCTS` includes example products, which you can replace.
52
52
For example, to build an image containing MATLAB and the Deep Learning Toolbox™:
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
67
67
68
68
| Argument Name | Default value | Effect |
69
69
|---|---|---|
70
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release to install. Must be lower-case, for example: `r2020b`.|
70
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024a| The MATLAB release to install. Must be lower-case, for example: `R2020b`.|
71
71
|[ADDITIONAL_PRODUCTS](#customize-products-to-install-using-matlab-package-manager-mpm)| "Symbolic_Math_Toolbox Deep_Learning_Toolbox_Model_for_ResNet-50_Network" | A 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)|
72
72
|[LICENSE_SERVER](#build-an-image-with-license-server-information)|*unset*| The 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. |
73
73
@@ -79,12 +79,12 @@ directly in the Dockerfile.
79
79
80
80
For example, to build an image for MATLAB R2022b, use the following command.
To customize the build of the product image, refer to [Customize the Product Docker Image](#customize-the-product-docker-image).
@@ -54,7 +54,7 @@ The [archive.Dockerfile](archive.Dockerfile) supports the following Docker build
54
54
55
55
| Argument Name | Default value | Effect |
56
56
|---|---|---|
57
-
|[MATLAB_RELEASE](#build-an-archive-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release you want to install, in lower-case. For example: `r2022a`|
57
+
|[MATLAB_RELEASE](#build-an-archive-image-for-a-different-release-of-matlab)|R2024a| The MATLAB release you want to install, in lower-case. For example: `R2022a`|
58
58
|[MATLAB_PRODUCT_LIST](#build-an-archive-image-with-a-specific-set-of-products)| MATLAB | Products to install as a space-separated list. For more information, see [MPM.md](../../MPM.md). For example: `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`|
59
59
60
60
Use these arguments with the `docker build` command to customize your image.
@@ -64,25 +64,25 @@ Alternatively, you can change the default values for these arguments directly in
64
64
65
65
For example, to build an archive image for MATLAB R2023b installation files, use the following command.
The [Dockerfile](Dockerfile) supports the following Docker build-time variables:
79
79
80
80
| Argument Name | Default value | Effect |
81
81
|---|---|---|
82
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release you want to install, in lower-case. For example: `r2022a`. :warning: This release must match the `MATLAB_RELEASE` you use to build the archive image. |
82
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024a| The MATLAB release you want to install, in lower-case. For example: `R2022a`. :warning: This release must match the `MATLAB_RELEASE` you use to build the archive image. |
83
83
|[MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products)| MATLAB | Products to install as a space-separated list. For more information, see [MPM.md](../../MPM.md). For example: `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`. The list of products to install must be a subset of the installation files available in the archive image. |
84
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/r2024a| The path to install MATLAB. |
85
-
|[ARCHIVE_BASE_IMAGE](#build-an-image-from-a-different-archive)| mpm-archive:r2024a| The name of the Docker® image containing the product installation files. |
84
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024a| The path to install MATLAB. |
85
+
|[ARCHIVE_BASE_IMAGE](#build-an-image-from-a-different-archive)| mpm-archive:R2024a| The name of the Docker® image containing the product installation files. |
86
86
|[LICENSE_SERVER](#build-an-image-configured-to-use-a-license-server)|*unset*| The port and hostname of the machine that is running the Network License Manager, using the `port@hostname` syntax. For example: `27000@MyServerName`|
87
87
88
88
Use these arguments with the `docker build` command to customize your image.
@@ -93,40 +93,40 @@ Alternatively, you can change the default values for these arguments directly in
93
93
94
94
For example, to build an image for MATLAB R2023b, use the following command.
Copy file name to clipboardExpand all lines: alternates/non-interactive/README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,12 +26,12 @@ cd matlab-dockerfile/alternates/non-interactive
26
26
27
27
Build a container with a name and tag.
28
28
```bash
29
-
docker build -t matlab-non-interactive:r2024a.
29
+
docker build -t matlab-non-interactive:R2024a.
30
30
```
31
31
32
32
You can then run the container and use the `matlab-batch` command. Test the container by running an example MATLAB command such as `rand`.
33
33
```bash
34
-
docker run --init --rm matlab-non-interactive:r2024a matlab-batch -licenseToken "user@email.com|encodedToken""rand"
34
+
docker run --init --rm matlab-non-interactive:R2024a matlab-batch -licenseToken "user@email.com|encodedToken""rand"
35
35
```
36
36
For more information, see [Run the Container](#run-the-container).
37
37
@@ -46,9 +46,9 @@ The [Dockerfile](Dockerfile) supports the following Docker build-time variables:
46
46
47
47
| Argument Name | Default value | Effect |
48
48
|---|---|---|
49
-
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|r2024a| The MATLAB release you want to install, in lower-case. For example: `r2022a`|
49
+
|[MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab)|R2024a| The MATLAB release you want to install, in lower-case. For example: `R2022a`|
50
50
|[MATLAB_PRODUCT_LIST](#build-an-image-with-a-specific-set-of-products)| MATLAB | Products to install as a space-separated list. For more information, see [MPM.md](../../MPM.md). For example: `MATLAB Simulink Deep_Learning_Toolbox Fixed-Point_Designer`|
51
-
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/r2024a| The path to install MATLAB. |
51
+
|[MATLAB_INSTALL_LOCATION](#build-an-image-with-matlab-installed-to-a-specific-location)| /opt/matlab/R2024a| The path to install MATLAB. |
52
52
53
53
Use these arguments with the `docker build` command to customize your image.
54
54
Alternatively, the default values for these arguments can be changed directly in the [Dockerfile](Dockerfile).
@@ -57,7 +57,7 @@ Alternatively, the default values for these arguments can be changed directly in
57
57
58
58
For example, to build an image for MATLAB R2021b, use the following command.
docker run --init --rm -e MLM_LICENSE_TOKEN matlab-non-interactive:r2024a matlab-batch "disp('Hello, World.')"
96
+
docker run --init --rm -e MLM_LICENSE_TOKEN matlab-non-interactive:R2024a matlab-batch "disp('Hello, World.')"
97
97
```
98
98
99
99
## Run the Container
100
100
This Dockerfile's default entrypoint is a shell session. Once you start the container, use `matlab-batch` to start MATLAB with a MATLAB batch licensing token.
101
101
102
102
```bash
103
103
# Launch MATLAB, print Hello, World., and exit:
104
-
docker run --init --rm matlab-non-interactive:r2024a matlab-batch -licenseToken "user@email.com|encodedToken" "disp('Hello, World.')"
104
+
docker run --init --rm matlab-non-interactive:R2024a matlab-batch -licenseToken "user@email.com|encodedToken" "disp('Hello, World.')"
105
105
```
106
106
107
107
You can set your MATLAB batch licensing token at the container level by setting the `MLM_LICENSE_TOKEN` environment variable, as shown in the examples below.
@@ -111,15 +111,15 @@ To start the container, run a MATLAB command and exit, execute:
111
111
```bash
112
112
# Container runs the command RAND in MATLAB and exits.
|`IMAGE_NAME`|`IMAGE_NAME=matlab-docker-image:r2020a`| The tests will run against the Docker image named `${IMAGE_NAME}`. If no such image is found, the tests will fail. |
23
+
|`IMAGE_NAME`|`IMAGE_NAME=matlab-docker-image:R2020a`| The tests will run against the Docker image named `${IMAGE_NAME}`. If no such image is found, the tests will fail. |
24
24
|`LICENSE_FILE_PATH`|`LICENSE_FILE_PATH=path/to/license.lic`| Some tests will attempt to run MATLAB® in the Docker container and require a license file. Store the path to the license file in `${LICENSE_FILE_PATH}`|
0 commit comments