Skip to content

Commit

Permalink
Merge pull request #273 from elezar/fix-centos7-builds
Browse files Browse the repository at this point in the history
Use centos:7 vault repos for builds
  • Loading branch information
elezar authored Jul 1, 2024
2 parents e729d79 + 9218b30 commit 24b3f92
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 24b3f92

Please sign in to comment.