Skip to content

Commit cb1359a

Browse files
committed
RHAIENG-948: add subscription-manager refresh to improve subscription handling in rhel9-python-3.12 Dockerfile
1 parent 5bdd1d3 commit cb1359a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rstudio/rhel9-python-3.12/Dockerfile.cpu

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ USER root
2424
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2525
COPY --from=ubi-repos /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2626

27+
RUN /bin/bash <<'EOF'
28+
set -Eeuxo pipefail
29+
if command -v subscription-manager &> /dev/null; then
30+
subscription-manager refresh
31+
fi
32+
EOF
33+
2734
# upgrade first to avoid fixable vulnerabilities begin
2835
# Problem: The operation would result in removing the following protected packages: systemd
2936
# (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

0 commit comments

Comments
 (0)