mirror of https://github.com/apache/druid.git
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:
parent
4e02e5b856
commit
39161b0b23
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue