Skip to content

Commit

Permalink
Update mirrors of centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Jul 16, 2024
1 parent 82c2f4b commit 5dd9f7a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions linkis-dist/docker/ldh.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ ARG LINKIS_VERSION=0.0.0

RUN useradd -r -s /bin/bash -u 100001 -g root -G wheel hadoop

# Update mirrors to use vault.centos.org as CentOS 7 is EOL since 2024-06-30
RUN sed -i \
-e 's/^mirrorlist/#mirrorlist/' \
-e 's/^#baseurl/baseurl/' \
-e 's/mirror\.centos\.org/vault.centos.org/' \
/etc/yum.repos.d/*.repo

# if you want to set specific yum repos conf file, you can put its at linkis-dist/docker/CentOS-Base.repo
# and exec [COPY apache-linkis-*-bin/docker/CentOS-Epel.repo /etc/yum.repos.d/CentOS-Epel.repo]

Expand Down
7 changes: 7 additions & 0 deletions linkis-dist/docker/linkis.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ FROM ${IMAGE_BASE} as linkis-base
ARG JDK_VERSION=1.8.0-openjdk
ARG JDK_BUILD_REVISION=1.8.0.332.b09-1.el7_9

# Update mirrors to use vault.centos.org as CentOS 7 is EOL since 2024-06-30
RUN sed -i \
-e 's/^mirrorlist/#mirrorlist/' \
-e 's/^#baseurl/baseurl/' \
-e 's/mirror\.centos\.org/vault.centos.org/' \
/etc/yum.repos.d/*.repo

# if you want to set specific yum repos conf file, you can put its at linkis-dist/docker/CentOS-Base.repo
# and exec [COPY apache-linkis-*-bin/docker/CentOS-Epel.repo /etc/yum.repos.d/CentOS-Epel.repo]

Expand Down

0 comments on commit 5dd9f7a

Please sign in to comment.