Browse Source

Use vault.centos6

pull/621/head
Tim Kimber 5 years ago
parent
commit
4b2d4e4109
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      test/Dockerfile-centos6

+ 7
- 1
test/Dockerfile-centos6 View File

@ -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


Loading…
Cancel
Save