From cc070398ca7d6f98451c1987150e165d33c8039c Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Tue, 9 Jul 2024 18:29:53 +0800 Subject: [PATCH] fix --- dev-support/docker/Dockerfile | 2 +- dev-support/docker/Dockerfile_centos_7 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index 3b71e622a575e..fdca94b0cff75 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -58,7 +58,7 @@ ENV PYTHONIOENCODING=utf-8 ###### ENV MAVEN_HOME /usr # JAVA_HOME must be set in Maven >= 3.5.0 (MNG-6003) -ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 +ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64 ####### # Set env vars for SpotBugs 4.2.2 diff --git a/dev-support/docker/Dockerfile_centos_7 b/dev-support/docker/Dockerfile_centos_7 index ff947637a2ce2..dd522d941f966 100644 --- a/dev-support/docker/Dockerfile_centos_7 +++ b/dev-support/docker/Dockerfile_centos_7 @@ -23,6 +23,14 @@ WORKDIR /root SHELL ["/bin/bash", "-o", "pipefail", "-c"] +###### +# Workaround for mirrorlist.centos.org doesn't exists anymore since July 1, 2024. +# See https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve +###### +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 + ###### # Platform package dependency resolver ######