changeset 33628:aa7a3f6e3729 stable

centos5: use vault urls CentOS 5 has reached end-of-life. A working build for it is still possible using 'vault.centos.org'. Differential Revision: https://phab.mercurial-scm.org/D261
author Mathias De Maré <mathias.de_mare@nokia.com>
date Mon, 07 Aug 2017 13:38:25 +0200
parents c2c6a0f7408b
children 5544af862286
files contrib/docker/centos5
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/docker/centos5	Sat Aug 05 13:19:09 2017 -0700
+++ b/contrib/docker/centos5	Mon Aug 07 13:38:25 2017 +0200
@@ -1,4 +1,7 @@
 FROM centos:centos5
+RUN sed -i 's/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo
+RUN sed -i 's/^#\(baseurl=\)http:\/\/mirror.centos.org\/centos/\1http:\/\/vault.centos.org/' /etc/yum.repos.d/*.repo
+RUN sed -i 's/\$releasever/5.11/' /etc/yum.repos.d/*.repo
 RUN yum install -y gcc make rpm-build gettext tar
 RUN yum install -y python-devel python-docutils
 # For creating repo meta data