This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
The following commit(s) were added to refs/heads/master by this push:
new a12856515 fix(Dockerfile): Fix the yum install failure caused by its
EOL (#2075)
a12856515 is described below
commit a12856515094daac980830161a5309d82fac5f99
Author: Yingchun Lai <[email protected]>
AuthorDate: Mon Jul 15 19:50:10 2024 +0800
fix(Dockerfile): Fix the yum install failure caused by its EOL (#2075)
Resolve https://github.com/apache/incubator-pegasus/issues/2071.
---
docker/pegasus-build-env/centos7/Dockerfile | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/docker/pegasus-build-env/centos7/Dockerfile
b/docker/pegasus-build-env/centos7/Dockerfile
index 790268202..12db0544f 100644
--- a/docker/pegasus-build-env/centos7/Dockerfile
+++ b/docker/pegasus-build-env/centos7/Dockerfile
@@ -19,10 +19,16 @@ FROM centos:7.5.1804
LABEL maintainer=wutao
-RUN yum -y install centos-release-scl \
+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 && \
+ yum -y install centos-release-scl \
scl-utils \
- epel-release; \
- yum -y install devtoolset-7-gcc \
+ epel-release && \
+ 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 && \
+ yum -y install devtoolset-7-gcc \
devtoolset-7-gcc-c++ \
java-1.8.0-openjdk-devel.x86_64 \
python3 \
@@ -48,10 +54,10 @@ RUN yum -y install centos-release-scl \
flex \
krb5-devel \
cyrus-sasl-devel \
- patch; \
- yum -y install ca-certificates; \
- yum clean all; \
- rm -rf /var/cache/yum;
+ patch && \
+ yum -y install ca-certificates && \
+ yum clean all && \
+ rm -rf /var/cache/yum;
ENV PATH="/opt/rh/devtoolset-7/root/bin/:${PATH}"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]