Skip to content

Commit cecbb91

Browse files
authored
Merge pull request #1315 from jiridanek/rhoai-2.22.1
[2.22] update `setuptools` to version 78.1.1 in RStudio Pipfiles; run `dnf install` to reduce fixable base image vulnerabilities
2 parents 4cdf1f2 + a5f035c commit cecbb91

File tree

11 files changed

+38
-20
lines changed

11 files changed

+38
-20
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ BASE_DIRS := jupyter/minimal/ubi9-python-$(PYTHON_VERSION) \
399399
jupyter/rocm/tensorflow/ubi9-python-$(PYTHON_VERSION) \
400400
jupyter/rocm/pytorch/ubi9-python-$(PYTHON_VERSION) \
401401
codeserver/ubi9-python-$(PYTHON_VERSION) \
402+
rstudio/rhel9-python-$(PYTHON_VERSION) \
403+
rstudio/c9s-python-$(PYTHON_VERSION) \
402404
runtimes/minimal/ubi9-python-$(PYTHON_VERSION) \
403405
runtimes/datascience/ubi9-python-$(PYTHON_VERSION) \
404406
runtimes/pytorch/ubi9-python-$(PYTHON_VERSION) \

rstudio/c9s-python-3.11/Dockerfile.cpu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14-
# Install usefull OS packages
14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
18+
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

1721
# Other apps and tools installed as default user

rstudio/c9s-python-3.11/Dockerfile.cuda

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14-
# Install usefull OS packages
14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
18+
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

1721
# Other apps and tools installed as default user

rstudio/c9s-python-3.11/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ verify_ssl = true
88
[packages]
99
# Base packages
1010
wheel = "~=0.45.1"
11-
setuptools = "~=75.8.2"
11+
setuptools = "~=78.1.1"
1212

1313
[requires]
1414
python_version = "3.11"

rstudio/c9s-python-3.11/Pipfile.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rstudio/c9s-python-3.11/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#
55
# Default dependencies
66
#
7-
setuptools==75.8.2; python_version >= '3.9' \
8-
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
9-
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
7+
setuptools==78.1.1; python_version >= '3.9' \
8+
--hash=sha256:c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561 \
9+
--hash=sha256:fcc17fd9cd898242f6b4adfaca46137a9edef687f43e6f78469692a5e70d851d
1010
wheel==0.45.1; python_version >= '3.8' \
1111
--hash=sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
1212
--hash=sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248

rstudio/rhel9-python-3.11/Dockerfile.cpu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14-
# Install usefull OS packages
14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
18+
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

1721
# Other apps and tools installed as default user

rstudio/rhel9-python-3.11/Dockerfile.cuda

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
1111
# OS Packages needs to be installed as root
1212
USER root
1313

14-
# Install usefull OS packages
14+
# upgrade first to avoid fixable vulnerabilities
15+
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
16+
&& dnf clean all -y
17+
18+
# Install useful OS packages
1519
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
1620

1721
# Other apps and tools installed as default user

rstudio/rhel9-python-3.11/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ verify_ssl = true
77

88
[packages]
99
# Base packages
10-
setuptools = "~=75.8.2"
10+
setuptools = "~=78.1.1"
1111
wheel = "~=0.45.1"
1212

1313
[requires]

rstudio/rhel9-python-3.11/Pipfile.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)