Skip to content

Commit

Permalink
fix: fixed centos yum repository mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Jul 6, 2024
1 parent f9dca36 commit 7d6c43d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions centos/7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ LABEL maintainer='Anton Melekhin'
ENV container=docker

RUN INSTALL_PKGS='findutils initscripts iproute python sudo' \
&& sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo \
&& sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo \
&& sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo \
&& yum makecache fast && yum install -y $INSTALL_PKGS \
\
&& curl --silent https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/repo/epel-7/jsynacek-systemd-backports-for-centos-7-epel-7.repo --output /etc/yum.repos.d/jsynacek-systemd-centos-7.repo \
&& yum makecache fast && yum update -y \
&& yum clean all
Expand Down

0 comments on commit 7d6c43d

Please sign in to comment.