From 4b2d4e4109a821d99c59cff1b6d734dfc5b58f75 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Wed, 30 Dec 2020 20:56:01 +0000 Subject: [PATCH] Use vault.centos6 --- test/Dockerfile-centos6 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Dockerfile-centos6 b/test/Dockerfile-centos6 index d578f4b..6874cb2 100644 --- a/test/Dockerfile-centos6 +++ b/test/Dockerfile-centos6 @@ -5,8 +5,14 @@ FROM centos:centos6 # [wsl2] # kernelCommandLine = vsyscall=emulate +# Centos 6 is EOL and is no longer available from the usual mirrors, so switch +# to https://vault.centos.org +RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \ + sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \ + sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo + # Update and install required software -RUN yum -y update +#RUN yum -y update RUN yum -y install epel-release RUN yum -y install git curl dnsutils ldns wget nginx