use fixed ip for vault.centos.org until updates have propagated to all mirrors

This commit is contained in:
Tim Neumann 2017-04-03 22:51:06 +02:00
parent 802c11c33e
commit 6dc8869f38

View File

@ -6,7 +6,7 @@ WORKDIR /build
# 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 sed -i 's/#\(baseurl.*\)mirror.centos.org/\1107.158.252.35/' /etc/yum.repos.d/*.repo
RUN yum upgrade -y && yum install -y \
curl \