Skip to content

Commit

Permalink
Change centos7 to use the vault repo
Browse files Browse the repository at this point in the history
  • Loading branch information
timkimber committed Sep 20, 2024
1 parent 5964527 commit 523b95e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Dockerfile-centos7
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM centos:centos7

# Centos 7 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 install epel-release
Expand Down

0 comments on commit 523b95e

Please sign in to comment.