From 6997fad45cfa3c2c23bd5f3848775170deaa4dab Mon Sep 17 00:00:00 2001 From: cheyang Date: Wed, 2 Feb 2022 17:41:30 +0800 Subject: [PATCH] Fix building docker image for init user (#1408) * Fix docker build for cento8, To #37688693 Signed-off-by: cheyang * Fix docker build for cento8, To #37688693 Signed-off-by: cheyang --- charts/alluxio/docker/init-users/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/alluxio/docker/init-users/Dockerfile b/charts/alluxio/docker/init-users/Dockerfile index a32c211944a..8de0c042f30 100644 --- a/charts/alluxio/docker/init-users/Dockerfile +++ b/charts/alluxio/docker/init-users/Dockerfile @@ -2,7 +2,9 @@ FROM centos:centos8.2.2004 COPY *.sh / -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