From 643559cfdb0918eb7966b2016522d50e8da1aef4 Mon Sep 17 00:00:00 2001 From: tkmru Date: Sat, 27 Jul 2024 12:32:44 +0900 Subject: [PATCH] CentOS7 EOL was 2024-06-30, so mirrorlist.centos.org is unavailable now. --- containers/bind/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containers/bind/Dockerfile b/containers/bind/Dockerfile index 6ea9d5c..1a34d6a 100644 --- a/containers/bind/Dockerfile +++ b/containers/bind/Dockerfile @@ -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 \