Skip to content

Commit 777f252

Browse files
mwthomashprabhakk-mw
authored andcommitted
Add upgrade to aws-batch dockerfiles to ensure that the latest packages are always pulled in.
This is required as the base layer here does not update itself often.
1 parent 50e9075 commit 777f252

File tree

11 files changed

+92
-81
lines changed

11 files changed

+92
-81
lines changed

matlab-deps/r2019b/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu18.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2020a/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu18.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*
Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
1-
# Copyright 2020-2024 The MathWorks, Inc.
2-
3-
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
4-
5-
LABEL maintainer="The MathWorks, Inc."
6-
7-
# base-dependencies.txt lists libraries required by MATLAB, except for:
8-
# csh - Support MATLAB's Engine API for C and Fortran. See https://www.mathworks.com/help/matlab/matlab_external/introducing-matlab-engine.html
9-
# gcc, g++, gfortran - Support Simulink code generation and mex with gcc, g++, or gfortran.
10-
# locales, locales-all - Provide extended locales support
11-
# python3, python3-pip - Python and pip are to run/install the AWS CLI.
12-
# unzip, zip - Used to stage input/output data.
13-
COPY base-dependencies.txt /tmp/base-dependencies.txt
14-
15-
RUN export DEBIAN_FRONTEND=noninteractive \
16-
&& apt-get update \
17-
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
18-
&& apt-get clean && apt-get -y autoremove \
19-
&& rm -rf /var/lib/apt/lists/*
20-
21-
# Install the AWS CLI to use for staging input and output data
22-
RUN pip3 install awscli
23-
24-
# Create directories for the MATLAB install and for the JobStorageLocation
25-
ENV JOB_STORAGE_LOCATION /usr/local/JobStorageLocation
26-
ENV MATLAB_INSTALL_LOCATION /usr/local/matlab
27-
RUN mkdir -p ${MATLAB_INSTALL_LOCATION} ${JOB_STORAGE_LOCATION}
28-
RUN chmod -R +wx ${JOB_STORAGE_LOCATION}
29-
30-
# To avoid inadvertantly polluting the / directory, use the JobStorageLocation
31-
# while running MATLAB.
32-
WORKDIR ${JOB_STORAGE_LOCATION}
33-
34-
COPY stageDataAndRunJob.sh /usr/local/stageDataAndRunJob.sh
35-
RUN chmod +x /usr/local/stageDataAndRunJob.sh
36-
ENTRYPOINT ["/usr/local/stageDataAndRunJob.sh"]
1+
# Copyright 2020-2025 The MathWorks, Inc.
2+
3+
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
4+
5+
LABEL maintainer="The MathWorks, Inc."
6+
7+
# base-dependencies.txt lists libraries required by MATLAB, except for:
8+
# csh - Support MATLAB's Engine API for C and Fortran. See https://www.mathworks.com/help/matlab/matlab_external/introducing-matlab-engine.html
9+
# gcc, g++, gfortran - Support Simulink code generation and mex with gcc, g++, or gfortran.
10+
# locales, locales-all - Provide extended locales support
11+
# python3, python3-pip - Python and pip are to run/install the AWS CLI.
12+
# unzip, zip - Used to stage input/output data.
13+
COPY base-dependencies.txt /tmp/base-dependencies.txt
14+
15+
RUN export DEBIAN_FRONTEND=noninteractive \
16+
&& apt-get update \
17+
&& apt-get upgrade -y \
18+
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
19+
&& apt-get clean && apt-get -y autoremove \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
# Install the AWS CLI to use for staging input and output data
23+
RUN pip3 install awscli
24+
25+
# Create directories for the MATLAB install and for the JobStorageLocation
26+
ENV JOB_STORAGE_LOCATION /usr/local/JobStorageLocation
27+
ENV MATLAB_INSTALL_LOCATION /usr/local/matlab
28+
RUN mkdir -p ${MATLAB_INSTALL_LOCATION} ${JOB_STORAGE_LOCATION}
29+
RUN chmod -R +wx ${JOB_STORAGE_LOCATION}
30+
31+
# To avoid inadvertantly polluting the / directory, use the JobStorageLocation
32+
# while running MATLAB.
33+
WORKDIR ${JOB_STORAGE_LOCATION}
34+
35+
COPY stageDataAndRunJob.sh /usr/local/stageDataAndRunJob.sh
36+
RUN chmod +x /usr/local/stageDataAndRunJob.sh
37+
ENTRYPOINT ["/usr/local/stageDataAndRunJob.sh"]
Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,37 @@
1-
# Copyright 2021-2024 The MathWorks, Inc.
2-
3-
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
4-
5-
LABEL maintainer="The MathWorks, Inc."
6-
7-
# base-dependencies.txt lists libraries required by MATLAB, except for:
8-
# csh - Support MATLAB's Engine API for C and Fortran. See https://www.mathworks.com/help/matlab/matlab_external/introducing-matlab-engine.html
9-
# gcc, g++, gfortran - Support Simulink code generation and mex with gcc, g++, or gfortran.
10-
# locales, locales-all - Provide extended locales support
11-
# python3, python3-pip - Python and pip are to run/install the AWS CLI.
12-
# unzip, zip - Used to stage input/output data.
13-
COPY base-dependencies.txt /tmp/base-dependencies.txt
14-
15-
RUN export DEBIAN_FRONTEND=noninteractive \
16-
&& apt-get update \
17-
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
18-
&& apt-get clean && apt-get -y autoremove \
19-
&& rm -rf /var/lib/apt/lists/*
20-
21-
# Install the AWS CLI to use for staging input and output data
22-
RUN pip3 install awscli
23-
24-
# Create directories for the MATLAB install and for the JobStorageLocation
25-
ENV JOB_STORAGE_LOCATION /usr/local/JobStorageLocation
26-
ENV MATLAB_INSTALL_LOCATION /usr/local/matlab
27-
RUN mkdir -p ${MATLAB_INSTALL_LOCATION} ${JOB_STORAGE_LOCATION}
28-
RUN chmod -R +wx ${JOB_STORAGE_LOCATION}
29-
30-
# To avoid inadvertantly polluting the / directory, use the JobStorageLocation
31-
# while running MATLAB.
32-
WORKDIR ${JOB_STORAGE_LOCATION}
33-
34-
COPY stageDataAndRunJob.sh /usr/local/stageDataAndRunJob.sh
35-
RUN chmod +x /usr/local/stageDataAndRunJob.sh
36-
ENTRYPOINT ["/usr/local/stageDataAndRunJob.sh"]
1+
# Copyright 2021-2025 The MathWorks, Inc.
2+
3+
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
4+
5+
LABEL maintainer="The MathWorks, Inc."
6+
7+
# base-dependencies.txt lists libraries required by MATLAB, except for:
8+
# csh - Support MATLAB's Engine API for C and Fortran. See https://www.mathworks.com/help/matlab/matlab_external/introducing-matlab-engine.html
9+
# gcc, g++, gfortran - Support Simulink code generation and mex with gcc, g++, or gfortran.
10+
# locales, locales-all - Provide extended locales support
11+
# python3, python3-pip - Python and pip are to run/install the AWS CLI.
12+
# unzip, zip - Used to stage input/output data.
13+
COPY base-dependencies.txt /tmp/base-dependencies.txt
14+
15+
RUN export DEBIAN_FRONTEND=noninteractive \
16+
&& apt-get update \
17+
&& apt-get upgrade -y \
18+
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
19+
&& apt-get clean && apt-get -y autoremove \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
# Install the AWS CLI to use for staging input and output data
23+
RUN pip3 install awscli
24+
25+
# Create directories for the MATLAB install and for the JobStorageLocation
26+
ENV JOB_STORAGE_LOCATION /usr/local/JobStorageLocation
27+
ENV MATLAB_INSTALL_LOCATION /usr/local/matlab
28+
RUN mkdir -p ${MATLAB_INSTALL_LOCATION} ${JOB_STORAGE_LOCATION}
29+
RUN chmod -R +wx ${JOB_STORAGE_LOCATION}
30+
31+
# To avoid inadvertantly polluting the / directory, use the JobStorageLocation
32+
# while running MATLAB.
33+
WORKDIR ${JOB_STORAGE_LOCATION}
34+
35+
COPY stageDataAndRunJob.sh /usr/local/stageDataAndRunJob.sh
36+
RUN chmod +x /usr/local/stageDataAndRunJob.sh
37+
ENTRYPOINT ["/usr/local/stageDataAndRunJob.sh"]

matlab-deps/r2021b/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2022a/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2022b/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2023a/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu20.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2023b/aws-batch/Dockerfile

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

33
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

matlab-deps/r2024a/aws-batch/Dockerfile

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
FROM nvidia/cuda:12.2.2-base-ubuntu22.04
44

@@ -14,6 +14,7 @@ COPY base-dependencies.txt /tmp/base-dependencies.txt
1414

1515
RUN export DEBIAN_FRONTEND=noninteractive \
1616
&& apt-get update \
17+
&& apt-get upgrade -y \
1718
&& apt-get install --no-install-recommends -y `cat /tmp/base-dependencies.txt` \
1819
&& apt-get clean && apt-get -y autoremove \
1920
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)