Skip to content

Commit

Permalink
Fixes issue with EOL Centos8 mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmmatos committed Jan 31, 2022
1 parent b25c92d commit cc22623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;

# Fix EOL Mirror issue
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

# Install requirements.
RUN yum -y install rpm centos-release dnf-plugins-core \
&& yum -y update \
Expand Down

0 comments on commit cc22623

Please sign in to comment.