From 942723b2046fc3045d0ab8da13a136c62921f4a1 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Tue, 12 Nov 2024 20:39:57 -0500 Subject: [PATCH] Switch to CentOS Vault --- images/manageiq-base/Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/images/manageiq-base/Dockerfile b/images/manageiq-base/Dockerfile index 17012684..1552e8a7 100644 --- a/images/manageiq-base/Dockerfile +++ b/images/manageiq-base/Dockerfile @@ -33,14 +33,18 @@ COPY rpms/* /tmp/rpms/ COPY container-assets/create_local_yum_repo.sh / COPY container-assets/clean_dnf_rpm /usr/local/bin/ -RUN dnf config-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False --save && \ +RUN ARCH=$(uname -m) && \ + dnf config-manager --setopt=tsflags=nodocs --setopt=install_weak_deps=False --save && \ + dnf -y update && \ if [ ${ARCH} != "s390x" ] ; then \ dnf -y --setopt=protected_packages= remove redhat-release && \ dnf -y remove *subscription-manager* && \ - dnf -y install \ - https://rpm.manageiq.org/builds/centos/centos-stream-repos-8-6.1.el8.noarch.rpm \ - https://rpm.manageiq.org/builds/centos/centos-gpg-keys-8-6.1.el8.noarch.rpm && \ - dnf -y --setopt=protected_packages= swap redhat-release centos-stream-release && \ + dnf -y install --releasever 8 \ + http://vault.centos.org/8-stream/BaseOS/${ARCH}/os/Packages/centos-gpg-keys-8-6.el8.noarch.rpm \ + http://vault.centos.org/8-stream/BaseOS/${ARCH}/os/Packages/centos-stream-release-8.6-1.el8.noarch.rpm \ + http://vault.centos.org/8-stream/BaseOS/${ARCH}/os/Packages/centos-stream-repos-8-6.el8.noarch.rpm && \ + sed -i 's/mirrorlist=/#mirrorlist=/g' /etc/yum.repos.d/CentOS-*.repo && \ + sed -i 's/#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/g' /etc/yum.repos.d/CentOS-*.repo \ dnf config-manager --setopt=appstream*.exclude=*httpd*,mod_ssl --save \ ; fi && \ dnf -y install \