Skip to content

Commit 2360e5f

Browse files
mwthomashprabhakk-mw
authored andcommitted
Updates for R2022b support
fixes #49
1 parent 1201f0c commit 2360e5f

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Copyright 2019 - 2021 The MathWorks, Inc.
1+
# Copyright 2019 - 2022 The MathWorks, Inc.
22
.vscode/

Dockerfile

+1-1
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 lower case to specify the release, for example: ARG MATLAB_RELEASE=r2021b
5-
ARG MATLAB_RELEASE=r2022a
5+
ARG MATLAB_RELEASE=r2022b
66

77
# When you start the build stage, this Dockerfile by default uses the Ubuntu-based matlab-deps image.
88
# To check the available matlab-deps images, see: https://hub.docker.com/r/mathworks/matlab-deps

MPM.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MATLAB Package Manager (**mpm**) is a command line package manager for MathWorks
66

77
Example usage:
88

9-
mpm install --release=R2022a --destination=/home/username/matlab --products MATLAB Simulink Deep_Learning_Toolbox Parallel_Computing_Toolbox
9+
mpm install --release=R2022b --destination=/home/username/matlab --products MATLAB Simulink Deep_Learning_Toolbox Parallel_Computing_Toolbox
1010

1111
## Download MATLAB Package Manager
1212

@@ -47,11 +47,11 @@ Install options:
4747

4848
No documentation and examples:
4949

50-
mpm install --release=R2022a --destination=/home/username/matlab --products MATLAB Deep_Learning_Toolbox Parallel_Computing_Toolbox
50+
mpm install --release=R2022b --destination=/home/username/matlab --products MATLAB Deep_Learning_Toolbox Parallel_Computing_Toolbox
5151

5252
Include documentation and examples:
5353

54-
mpm install --release=R2022a --destination=/home/username/matlab --doc --products MATLAB Deep_Learning_Toolbox Parallel_Computing_Toolbox
54+
mpm install --release=R2022b --destination=/home/username/matlab --doc --products MATLAB Deep_Learning_Toolbox Parallel_Computing_Toolbox
5555

5656
## Product Availability
5757

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ cd matlab-dockerfile
2626
### Build & Run Docker Image
2727
```bash
2828
# Build container with a name and tag of your choice.
29-
docker build -t matlab:r2022a .
29+
docker build -t matlab:r2022b .
3030

3131
# Run the container.
32-
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022a -batch "disp('Hello World!')"
32+
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022b -batch "disp('Hello World!')"
3333
```
3434
For more information on running, see the section on [Run the Container](#run-the-container).
3535

36-
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2022a.
36+
The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/Dockerfile) defaults to building a container for MATLAB R2022b.
3737

3838
## Customize the Image
3939
### Customize Products to Install Using MATLAB Package Manager (mpm)
@@ -61,7 +61,7 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/ma
6161

6262
| Argument Name | Default value | Effect |
6363
|---|---|---|
64-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2022a | The MATLAB release you want to install. Must be lower-case, for example: `r2019b`.|
64+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2022b | The MATLAB release you want to install. Must be lower-case, for example: `r2019b`.|
6565
| [LICENSE_SERVER](#build-an-image-with-license-server-information) | *unset* | The port and hostname of the machine that is running the Network License Manager, using the `port@hostname` syntax. For Example: `27000@MyServerName` |
6666

6767
Use these arguments with the the `docker build` command to customize your image.
@@ -78,10 +78,10 @@ docker build --build-arg MATLAB_RELEASE=r2019b -t matlab:r2019b .
7878
Including the license server information with the docker build command avoids having to pass it when running the container.
7979
```bash
8080
# Build container with the License Server
81-
docker build -t matlab:r2022a --build-arg LICENSE_SERVER=27000@MyServerName .
81+
docker build -t matlab:r2022b --build-arg LICENSE_SERVER=27000@MyServerName .
8282

8383
# Run the container, without needing to pass license information
84-
docker run matlab:r2022a -batch "disp('Hello World!')"
84+
docker run matlab:r2022b -batch "disp('Hello World!')"
8585
```
8686

8787
## Use the Network License Manager
@@ -114,7 +114,7 @@ With the `docker build` command, either:
114114

115115
```bash
116116
# Example
117-
docker build -t matlab:r2022a --build-arg LICENSE_SERVER=27000@MyServerName .
117+
docker build -t matlab:r2022b --build-arg LICENSE_SERVER=27000@MyServerName .
118118
```
119119
- Use the `network.lic` file:
120120
1. Place the `network.lic` file in the same folder as the Dockerfile.
@@ -123,41 +123,41 @@ With the `docker build` command, either:
123123

124124
```bash
125125
# Example
126-
docker build -t matlab:r2022a .
126+
docker build -t matlab:r2022b .
127127
```
128128

129129
With the `docker run` command, use the `MLM_LICENSE_FILE` environment variable. For example:
130130

131131
```bash
132-
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022a -batch "disp('Hello World!')"
132+
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022b -batch "disp('Hello World!')"
133133
```
134134

135135
## Run the Container
136136
If you did not provide the license server information while building the image, then you must provide it when running the container. Set this environment variable `MLM_LICENSE_FILE` using the `-e` flag with the network license manager's location as `port@hostname`.
137137
138138
```bash
139139
# Launch MATLAB, print Hello World!, and exit:
140-
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022a -batch "disp('Hello World!')"
140+
docker run --rm -e MLM_LICENSE_FILE=27000@MyServerName matlab:r2022b -batch "disp('Hello World!')"
141141
```
142142
143143
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.
144144
145145
### Run MATLAB in an Interactive Command Prompt
146146
To start the container and run MATLAB in an interactive command prompt, execute:
147147
```bash
148-
docker run -it --rm matlab:r2022a
148+
docker run -it --rm matlab:r2022b
149149
```
150150
### Run MATLAB in Batch Mode
151151
To start the container, run a MATLAB command and exit, execute:
152152
```bash
153153
# Container runs the command RAND in MATLAB and exits.
154-
docker run --rm matlab:r2022a -batch rand
154+
docker run --rm matlab:r2022b -batch rand
155155
```
156156
157157
### Run MATLAB with Startup Options
158158
To override the default behavior of the container and run MATLAB with any set of arguments, such as `-logfile`, execute:
159159
```bash
160-
docker run -it --rm matlab:r2022a -logfile "logfilename.log"
160+
docker run -it --rm matlab:r2022b -logfile "logfilename.log"
161161
```
162162
To learn more, see the documentation: [Commonly Used Startup Options](https://www.mathworks.com/help/matlab/matlab_env/commonly-used-startup-options.html)
163163
@@ -176,7 +176,7 @@ For some workflows and toolboxes, you must specify dependencies. You must do thi
176176
* Use the MATLAB Engine API for C and Fortran
177177
* Use the Polyspace 32-bit tcc compiler
178178
179-
The [matlab-deps repository](https://github.com/mathworks-ref-arch/container-images/tree/master/matlab-deps) repository lists Dockerfiles for various releases and platforms. [Click here to view the Dockerfile for R2022a](https://github.com/mathworks-ref-arch/container-images/blob/master/matlab-deps/r2022a/ubuntu20.04/Dockerfile).
179+
The [matlab-deps repository](https://github.com/mathworks-ref-arch/container-images/tree/master/matlab-deps) repository lists Dockerfiles for various releases and platforms. [Click here to view the Dockerfile for R2022b](https://github.com/mathworks-ref-arch/container-images/blob/master/matlab-deps/r2022b/ubuntu20.04/Dockerfile).
180180
181181
These Dockerfiles contain commented lines with the libraries that support these additional capabilities. Copy and uncomment these lines into your Dockerfile.
182182

0 commit comments

Comments
 (0)