From dcf70691eca4708ffe08088dc13a95209085c6c4 Mon Sep 17 00:00:00 2001 From: Mike DePaulo Date: Tue, 4 Jun 2024 13:05:15 -0400 Subject: [PATCH] Merge pull request #635 from mikedep333/634_fix_centos8_vault Update CentOS 8 containers for the distro's EOL (cherry picked from commit d83cdcc9473c0200754fdf5d76441b0e30baff4f) --- CHANGES/634.bugfix | 1 + images/Containerfile.core.base | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 CHANGES/634.bugfix diff --git a/CHANGES/634.bugfix b/CHANGES/634.bugfix new file mode 100644 index 00000000..09627bce --- /dev/null +++ b/CHANGES/634.bugfix @@ -0,0 +1 @@ +Update CentOS 8 containers for the distro's EOL diff --git a/images/Containerfile.core.base b/images/Containerfile.core.base index 8ba7ea3f..515b839c 100644 --- a/images/Containerfile.core.base +++ b/images/Containerfile.core.base @@ -18,6 +18,9 @@ ENV PULP_GUNICORN_TIMEOUT=${PULP_GUNICORN_TIMEOUT:-90} ENV PULP_API_WORKERS=${PULP_API_WORKERS:-2} ENV PULP_CONTENT_WORKERS=${PULP_CONTENT_WORKERS:-2} +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* +RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + # Install updates & dnf plugins before disabling python36 to prevent errors RUN dnf -y install dnf-plugins-core && \ dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \