Merge pull request #574 from elezar/fix-centos7-builds

Use centos:7 vault repos for builds
This commit is contained in:
Evan Lezar 2024-07-01 16:41:40 +02:00 committed by GitHub
commit 17d4d7da1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -20,11 +20,9 @@ FROM ${BASEIMAGE}
# centos:stream8 is EOL. # centos:stream8 is EOL.
# We switch to the vault repositories for this base image. # We switch to the vault repositories for this base image.
ARG BASEIMAGE ARG BASEIMAGE
RUN if [ "${BASEIMAGE}" = "quay.io/centos/centos:stream8" ]; then \ RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
sed -i -e "s|mirrorlist=|#mirrorlist=|g" \ -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \ /etc/yum.repos.d/CentOS-*
/etc/yum.repos.d/CentOS-Stream-*; \
fi
RUN yum install -y \ RUN yum install -y \
ca-certificates \ ca-certificates \

@ -1 +1 @@
Subproject commit c0e00ed9c3fe9bcacc9d025981bdad67e86a7595 Subproject commit 4c2494f16573b585788a42e9c7bee76ecd48c73d