Skip to content

Commit

Permalink
fix: Centos mirror fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rvql committed Sep 24, 2024
1 parent 392d6f0 commit 7c53987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions agent/docker/DockerfileToFix-aarch64.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH

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
RUN sed -i -e 's/mirror.centos.org/vault.centos.org/g' \
-e 's/^#.*baseurl=http/baseurl=http/g' \
-e 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo

# Install base dependencies
RUN yum install make epel-release centos-release-scl -y && yum -y install jq patch
Expand Down
7 changes: 4 additions & 3 deletions agent/docker/DockerfileToFix.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ FROM centos:centos7.9.2009
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
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

RUN sed -i -e 's/mirror.centos.org/vault.centos.org/g' \
-e 's/^#.*baseurl=http/baseurl=http/g' \
-e 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo
# 安装自定义软件
RUN yum install make epel-release centos-release-scl -y && yum -y install jq patch

Expand Down

0 comments on commit 7c53987

Please sign in to comment.