Skip to content

Commit

Permalink
CentOS7 EOL was 2024-06-30, so mirrorlist.centos.org is unavailable now.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmru committed Jul 27, 2024
1 parent c2292e6 commit 643559c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions containers/bind/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Forking https://github.com/knqyf263/CVE-2020-8617
FROM centos:7

# CentOS7 EOL was 2024-06-30, so mirrorlist.centos.org is unavailable now.
# Thanks to https://zenn.dev/potyama/articles/83f1d7fc82202e
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

# Install necessary packages
RUN yum -y update \
&& yum clean all \
&& yum -y groupinstall "Development Tools" \
&& yum install -y epel-release \
&& yum -y install kernel-devel kernel-headers openssl-devel perl-Net-DNS bind-utils vim tar python-pip \
Expand Down

0 comments on commit 643559c

Please sign in to comment.