Skip to content

Commit 802c11c

Browse files
committed
switch to vault.centos.org
1 parent 5309a3e commit 802c11c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/docker/dist-x86-linux/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ FROM centos:5
22

33
WORKDIR /build
44

5+
# Centos 5 is EOL and is no longer available from the usual mirrors, so switch
6+
# to http://vault.centos.org/
7+
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
8+
RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
9+
RUN sed -i 's/#\(baseurl.*\)mirror.centos.org/\1vault.centos.org/' /etc/yum.repos.d/*.repo
10+
511
RUN yum upgrade -y && yum install -y \
612
curl \
713
bzip2 \

0 commit comments

Comments
 (0)