Skip to content

Commit ad1e201

Browse files
committed
docker/dev centos8: use vault.centos.org instead of mirrorlist.centos.org
because CentOS Stream 8 reaches end-of-life at the end of May 2024
1 parent 3092cca commit ad1e201

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/dev/common/centos8-base-Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ FROM quay.io/centos/centos:stream8
66
ARG TZ
77
ENV TZ=${TZ}
88

9+
# CentOS Stream 8 reaches end-of-life at the end of May 2024
10+
RUN for i in /etc/yum.repos.d/CentOS-*.repo; do \
11+
cp -p ${i} ${i}.bak && \
12+
sed -e '/^mirrorlist=/s/^/#/' \
13+
-e '/^#baseurl=/s|^#baseurl=http://mirror|baseurl=http://vault|' \
14+
${i}.bak >${i}; \
15+
done
16+
917
RUN dnf -y update \
1018
&& dnf -y install \
1119
sudo \

0 commit comments

Comments
 (0)