Skip to content

Commit

Permalink
Use archived package repo for centos:stream8
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Jun 11, 2024
1 parent 6c8f1df commit 17fd57a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mk/Dockerfile.centos
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ARG BASEIMAGE
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

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

ARG OS_VERSION
Expand Down

0 comments on commit 17fd57a

Please sign in to comment.