From d13030b58e2c920e16ce09bf463261a88ceadd0a Mon Sep 17 00:00:00 2001 From: cheyang Date: Wed, 2 Feb 2022 17:12:41 +0800 Subject: [PATCH 1/2] Fix docker build for cento8, To #37688693 Signed-off-by: cheyang --- charts/alluxio/docker/init-users/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/alluxio/docker/init-users/Dockerfile b/charts/alluxio/docker/init-users/Dockerfile index a32c211944a..840f26aa154 100644 --- a/charts/alluxio/docker/init-users/Dockerfile +++ b/charts/alluxio/docker/init-users/Dockerfile @@ -2,6 +2,10 @@ FROM centos:centos8.2.2004 COPY *.sh / +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-* + RUN yum install -y net-tools RUN chmod +x /*.sh From f2634f80f05eff9e2d09dbadd630c4a0658fd9b4 Mon Sep 17 00:00:00 2001 From: cheyang Date: Wed, 2 Feb 2022 17:24:12 +0800 Subject: [PATCH 2/2] Fix docker build for cento8, To #37688693 Signed-off-by: cheyang --- charts/alluxio/docker/init-users/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/alluxio/docker/init-users/Dockerfile b/charts/alluxio/docker/init-users/Dockerfile index 840f26aa154..8de0c042f30 100644 --- a/charts/alluxio/docker/init-users/Dockerfile +++ b/charts/alluxio/docker/init-users/Dockerfile @@ -2,11 +2,9 @@ FROM centos:centos8.2.2004 COPY *.sh / -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-* - -RUN yum install -y net-tools +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*.repo && \ +sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo && \ +yum install -y net-tools RUN chmod +x /*.sh