Skip to content

Commit ad39fba

Browse files
committed
Set --allow-downgrades flag for GLIBC patch
fixes #6
1 parent 0bc95b6 commit ad39fba

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

matlab/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# on a base image of jupyter/base-notebook.
66

77
## Sample Build Command:
8-
# docker build --build-arg MATLAB_RELEASE=r2021b \
8+
# docker build --build-arg MATLAB_RELEASE=r2022a \
99
# --build-arg MATLAB_PRODUCT_LIST="MATLAB Deep_Learning_Toolbox Symbolic_Math_Toolbox"\
1010
# --build-arg LICENSE_SERVER=12345@hostname.com \
1111
# -t my_matlab_image_name .
1212

13-
# Specify release of MATLAB to build. (use lowercase, default is r2021b)
14-
ARG MATLAB_RELEASE=r2021b
13+
# Specify release of MATLAB to build. (use lowercase, default is r2022a)
14+
ARG MATLAB_RELEASE=r2022a
1515

1616
# Specify the list of products to install into MATLAB,
1717
ARG MATLAB_PRODUCT_LIST="MATLAB"
@@ -80,7 +80,7 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
8080
tar -x -f all-packages.tar.gz \
8181
--exclude glibc-*.deb \
8282
--exclude libc6-dbg*.deb &&\
83-
apt-get install --yes --no-install-recommends ./*.deb &&\
83+
apt-get install --yes --no-install-recommends --allow-downgrades ./*.deb &&\
8484
rm -fr /packages
8585
WORKDIR /
8686

matlab/Dockerfile.byoi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# on a base image of jupyter/base-notebook.
66

77
## Sample Build Command:
8-
# docker build --build-arg MATLAB_RELEASE=r2021b \
8+
# docker build --build-arg MATLAB_RELEASE=r2022a \
99
# --build-arg MATLAB_IMAGE_NAME=mathworks/matlab \
1010
# --build-arg LICENSE_SERVER=12345@hostname.com \
1111
# -t my_matlab_image_name -f Dockerfile.byoi .
1212

13-
# Specify release of MATLAB to build. (use lowercase, default is r2021b)
14-
ARG MATLAB_RELEASE=r2021b
13+
# Specify release of MATLAB to build. (use lowercase, default is r2022a)
14+
ARG MATLAB_RELEASE=r2022a
1515

1616
ARG DEFAULT_IMAGE_FROM_DOCKERHUB=mathworks/matlab:${MATLAB_RELEASE}
1717

@@ -99,7 +99,7 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
9999
tar -x -f all-packages.tar.gz \
100100
--exclude glibc-*.deb \
101101
--exclude libc6-dbg*.deb &&\
102-
apt-get install --yes --no-install-recommends ./*.deb &&\
102+
apt-get install --yes --no-install-recommends --allow-downgrades ./*.deb &&\
103103
rm -fr /packages
104104
WORKDIR /
105105

matlab/Dockerfile.mounted

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# Folder with the MATLAB installation needs to be mounted into the image at /opt/matlab
66

77
## Sample Build Command:
8-
# docker build --build-arg MATLAB_RELEASE=r2021b \
8+
# docker build --build-arg MATLAB_RELEASE=r2022a \
99
# --build-arg LICENSE_SERVER=12345@hostname.com \
1010
# -t my_matlab_image_name .
1111

12-
# Specify release of MATLAB being mounted. (use lowercase, default is r2021b)
12+
# Specify release of MATLAB being mounted. (use lowercase, default is r2022a)
1313
# Used to fetch & install MATLAB's s/w dependencies
14-
ARG MATLAB_RELEASE=r2021b
14+
ARG MATLAB_RELEASE=r2022a
1515

1616
# Optional Network License Server information in the form of port@hostname
1717
ARG LICENSE_SERVER
@@ -65,7 +65,7 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
6565
tar -x -f all-packages.tar.gz \
6666
--exclude glibc-*.deb \
6767
--exclude libc6-dbg*.deb &&\
68-
apt-get install --yes --no-install-recommends ./*.deb &&\
68+
apt-get install --yes --no-install-recommends --allow-downgrades ./*.deb &&\
6969
rm -fr /packages
7070
WORKDIR /
7171

matlab/README-byoi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Pass the name of your existing MATLAB image to docker build using the `build-tim
77
`Dockerfile.byoi` supports the following build-time variables:
88
| Argument Name | Default value | Effect |
99
|---|---|---|
10-
| **MATLAB_IMAGE_NAME** | mathworks/matlab:r2021b | Specify the name of the Docker image that MATLAB should be extracted from. |
11-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2021b | The MATLAB release you are using. Used to install its software dependencies.|
10+
| **MATLAB_IMAGE_NAME** | mathworks/matlab:r2022a | Specify the name of the Docker image that MATLAB should be extracted from. |
11+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2022a | The MATLAB release you are using. Used to install its software dependencies.|
1212
| [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`. </br> Click [Using the Network License Manager](https://github.com/mathworks-ref-arch/matlab-dockerfile#use-the-network-license-manager) to learn more.|
1313

1414
To build the Docker image, follow these steps:
1515
```bash
16-
docker build --build-arg MATLAB_RELEASE=r2021b \
16+
docker build --build-arg MATLAB_RELEASE=r2022a \
1717
--build-arg MATLAB_IMAGE_NAME=mathworks/matlab \
1818
--build-arg LICENSE_SERVER=12345@hostname.com \
1919
-t maltab-notebook -f Dockerfile.byoi .

matlab/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The [Dockerfile](https://github.com/mathworks-ref-arch/matlab-integration-for-ju
4040
| Argument Name | Default value | Effect |
4141
|---|---|---|
4242
| [MATLAB_PRODUCT_LIST](#customize-products-to-install) | MATLAB | Specify the list of products to install using product names separated by spaces. Replace spaces within names with underscores. For example: `MATLAB Simulink Deep_Learning_Toolbox Parallel_Computing_Toolbox` </br> See [MPM Documentation](https://github.com/mathworks-ref-arch/matlab-dockerfile/blob/main/MPM.md) for more information.|
43-
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2021b | The MATLAB release you want to install. **MUST** be newer than `r2020b` and specified in lower-case|
43+
| [MATLAB_RELEASE](#build-an-image-for-a-different-release-of-matlab) | r2022a | The MATLAB release you want to install. **MUST** be newer than `r2020b` and specified in lower-case|
4444
| [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`. </br> Click [Using the Network License Manager](https://github.com/mathworks-ref-arch/matlab-dockerfile#use-the-network-license-manager) to learn more.|
4545

4646
### Customize Products to Install

0 commit comments

Comments
 (0)