manylinux: Use CentOS Vault repositories

Backported from thewtex/docker-centos-build@26f7fd3

CentOS 5 is no longer supported and requests to obtain information from
the mirrors fails. However, the packages are still available on the
"Vault" mirrors.

Comment out the `mirrorlist` entries and set `enabled=0` in
CentOS-Base.repo, add entries for 5.11 in CentOS-Vault.repo and mark
them `enabled=1`.
This commit is contained in:
Jean-Christophe Fillion-Robin
2017-05-01 16:24:39 -04:00
parent 8fc9bd5a1d
commit 6e59959a6a
2 changed files with 61 additions and 0 deletions

View File

@ -1,3 +1,8 @@
ADD imagefiles/etc/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo
ADD imagefiles/etc/CentOS-Vault.repo /etc/yum.repos.d/CentOS-Vault.repo
ADD imagefiles/etc/libselinux.repo /etc/yum.repos.d/libselinux.repo
ENV GOSU_VERSION 1.10
RUN set -x \
&& yum -y install epel-release \