Skip to content

Commit 70140c3

Browse files
committed
NO-JIRA: workaround(rstudio/rhel): c9s base does not normally have redhat release key (opendatahub-io#2664)
When we update to latest AIPCC bases that don't remove the ``.repo` files, we will be able to remove the COPYs. ``` Red Hat Universal Base Image 9 (RPMs) - BaseOS 0.0 B/s | 0 B 00:00 Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release] ```
1 parent 70d0c35 commit 70140c3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

rstudio/rhel9-python-3.12/Dockerfile.cpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ USER root
2222
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
2323
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
2424
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
25+
COPY --from=ubi-repos /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2526

2627
# upgrade first to avoid fixable vulnerabilities begin
2728
# Problem: The operation would result in removing the following protected packages: systemd

rstudio/rhel9-python-3.12/Dockerfile.cuda

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ USER root
2222
# The Quay-based AIPCC image is "repo-less" by default (https://gitlab.com/redhat/rhel-ai/core/base-images/app#repositories), so dnf cannot upgrade or install packages.
2323
# By copying ubi.repo from the public UBI 9 image, we enable package management for upgrades and installations.
2424
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
25+
COPY --from=ubi-repos /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2526

2627
# upgrade first to avoid fixable vulnerabilities begin
2728
# Problem: The operation would result in removing the following protected packages: systemd

0 commit comments

Comments
 (0)