Skip to content

Commit

Permalink
Switch to CentOS Vault
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Nov 13, 2024
1 parent 1c7d395 commit 942723b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions images/manageiq-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 942723b

Please sign in to comment.