Skip to content

Commit

Permalink
fix(Dockerfile): Fix the yum install failure caused by its EOL (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 authored and lupengfan1 committed Jul 17, 2024
1 parent 8e09a45 commit 5b70f5b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docker/pegasus-build-env/centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}"

Expand Down

0 comments on commit 5b70f5b

Please sign in to comment.