Use vault.centos.org to build Hadoop docker image (#16999)

The Dockerfile for building hadoop image is broken due to Centos 7 EOL.
Fixed it as per https://serverfault.com/a/1161847.
This commit is contained in:
Rishabh Singh 2024-09-05 10:36:55 +05:30 committed by GitHub
parent 4e02e5b856
commit 39161b0b23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ FROM centos:7
USER root
# CentOS is EOL, have to use vault
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && \
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && \
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
# install dev tools
RUN yum clean all \
&& rpm --rebuilddb \