Skip to content

Commit

Permalink
Merge pull request #272 from elezar/fix-centos7-builds
Browse files Browse the repository at this point in the history
[no-relnote] Use centos:7 vault repos for builds
  • Loading branch information
elezar authored Jul 1, 2024
2 parents c0e00ed + 021ed5a commit 4c2494f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mk/Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ FROM ${BASEIMAGE}
# centos:stream8 is EOL.
# We switch to the vault repositories for this base image.
ARG BASEIMAGE
RUN if [ "${BASEIMAGE}" = "quay.io/centos/centos:stream8" ]; then \
sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
/etc/yum.repos.d/CentOS-Stream-*; \
fi
RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" \
-e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" \
/etc/yum.repos.d/CentOS-*

SHELL ["/bin/bash", "-c"]

Expand Down

0 comments on commit 4c2494f

Please sign in to comment.