Skip to content

[2.22] update setuptools to version 78.1.1 in RStudio Pipfiles; run dnf install to reduce fixable base image vulnerabilities #1315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ BASE_DIRS := jupyter/minimal/ubi9-python-$(PYTHON_VERSION) \
jupyter/rocm/tensorflow/ubi9-python-$(PYTHON_VERSION) \
jupyter/rocm/pytorch/ubi9-python-$(PYTHON_VERSION) \
codeserver/ubi9-python-$(PYTHON_VERSION) \
rstudio/rhel9-python-$(PYTHON_VERSION) \
rstudio/c9s-python-$(PYTHON_VERSION) \
runtimes/minimal/ubi9-python-$(PYTHON_VERSION) \
runtimes/datascience/ubi9-python-$(PYTHON_VERSION) \
runtimes/pytorch/ubi9-python-$(PYTHON_VERSION) \
Expand Down
6 changes: 5 additions & 1 deletion rstudio/c9s-python-3.11/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
# OS Packages needs to be installed as root
USER root

# Install usefull OS packages
# upgrade first to avoid fixable vulnerabilities
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
&& dnf clean all -y

# Install useful OS packages
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum

# Other apps and tools installed as default user
Expand Down
6 changes: 5 additions & 1 deletion rstudio/c9s-python-3.11/Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
# OS Packages needs to be installed as root
USER root

# Install usefull OS packages
# upgrade first to avoid fixable vulnerabilities
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
&& dnf clean all -y

# Install useful OS packages
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum

# Other apps and tools installed as default user
Expand Down
2 changes: 1 addition & 1 deletion rstudio/c9s-python-3.11/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ verify_ssl = true
[packages]
# Base packages
wheel = "~=0.45.1"
setuptools = "~=75.8.2"
setuptools = "~=78.1.1"

[requires]
python_version = "3.11"
8 changes: 4 additions & 4 deletions rstudio/c9s-python-3.11/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions rstudio/c9s-python-3.11/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#
# Default dependencies
#
setuptools==75.8.2; python_version >= '3.9' \
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
setuptools==78.1.1; python_version >= '3.9' \
--hash=sha256:c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561 \
--hash=sha256:fcc17fd9cd898242f6b4adfaca46137a9edef687f43e6f78469692a5e70d851d
wheel==0.45.1; python_version >= '3.8' \
--hash=sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
--hash=sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248
6 changes: 5 additions & 1 deletion rstudio/rhel9-python-3.11/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
# OS Packages needs to be installed as root
USER root

# Install usefull OS packages
# upgrade first to avoid fixable vulnerabilities
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
&& dnf clean all -y

# Install useful OS packages
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum

# Other apps and tools installed as default user
Expand Down
6 changes: 5 additions & 1 deletion rstudio/rhel9-python-3.11/Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
# OS Packages needs to be installed as root
USER root

# Install usefull OS packages
# upgrade first to avoid fixable vulnerabilities
RUN dnf -y upgrade --refresh --best --nodocs --noplugins --setopt=install_weak_deps=0 --setopt=keepcache=0 \
&& dnf clean all -y

# Install useful OS packages
RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum

# Other apps and tools installed as default user
Expand Down
2 changes: 1 addition & 1 deletion rstudio/rhel9-python-3.11/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ verify_ssl = true

[packages]
# Base packages
setuptools = "~=75.8.2"
setuptools = "~=78.1.1"
wheel = "~=0.45.1"

[requires]
Expand Down
8 changes: 4 additions & 4 deletions rstudio/rhel9-python-3.11/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions rstudio/rhel9-python-3.11/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#
# Default dependencies
#
setuptools==75.8.2; python_version >= '3.9' \
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
setuptools==78.1.1; python_version >= '3.9' \
--hash=sha256:c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561 \
--hash=sha256:fcc17fd9cd898242f6b4adfaca46137a9edef687f43e6f78469692a5e70d851d
wheel==0.45.1; python_version >= '3.8' \
--hash=sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
--hash=sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248