Skip to content

Commit

Permalink
switch to vault.centos.org
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Apr 3, 2017
1 parent 5309a3e commit 802c11c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ci/docker/dist-x86-linux/Dockerfile
Expand Up @@ -2,6 +2,12 @@ FROM centos:5

WORKDIR /build

# Centos 5 is EOL and is no longer available from the usual mirrors, so switch
# to http://vault.centos.org/
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
RUN sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
RUN sed -i 's/#\(baseurl.*\)mirror.centos.org/\1vault.centos.org/' /etc/yum.repos.d/*.repo

RUN yum upgrade -y && yum install -y \
curl \
bzip2 \
Expand Down

0 comments on commit 802c11c

Please sign in to comment.