Skip to content

Commit

Permalink
Replace mirror.centos.org with vault.centos.org Centos 7 Containerfile
Browse files Browse the repository at this point in the history
As mirror.centos.org is dead, replace mirrorlist with baseurl pointing
to vault.centos.org in utils/container-builds/Containerfile.centos7.
  • Loading branch information
matejmatuska authored and pirat89 committed Oct 11, 2024
1 parent 658700d commit d6e57ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/container-builds/Containerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM centos:7

VOLUME /repo

# mirror.centos.org is dead, comment out mirrorlist and set baseurl to vault.centos.org
RUN sed -i s/mirror.centos.org/vault.centos.org/ /etc/yum.repos.d/CentOS-*.repo
RUN sed -i s/^#\s*baseurl=http/baseurl=http/ /etc/yum.repos.d/CentOS-*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=http/ /etc/yum.repos.d/CentOS-*.repo

RUN yum update -y && \
yum install -y rpm-build python-devel make git

Expand Down

0 comments on commit d6e57ee

Please sign in to comment.