This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new bb908d299 Update mirrors of centos7 (#5150)
bb908d299 is described below
commit bb908d299ff9eb343b4adf1429b3c091ef9cd3c3
Author: Zhen Wang <[email protected]>
AuthorDate: Tue Jul 16 14:39:08 2024 +0800
Update mirrors of centos7 (#5150)
---
linkis-dist/docker/ldh.Dockerfile | 7 +++++++
linkis-dist/docker/linkis.Dockerfile | 7 +++++++
2 files changed, 14 insertions(+)
diff --git a/linkis-dist/docker/ldh.Dockerfile
b/linkis-dist/docker/ldh.Dockerfile
index 05e7d77e2..2d1960fba 100644
--- a/linkis-dist/docker/ldh.Dockerfile
+++ b/linkis-dist/docker/ldh.Dockerfile
@@ -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]
diff --git a/linkis-dist/docker/linkis.Dockerfile
b/linkis-dist/docker/linkis.Dockerfile
index 177378407..8851c2722 100644
--- a/linkis-dist/docker/linkis.Dockerfile
+++ b/linkis-dist/docker/linkis.Dockerfile
@@ -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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]