Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Jul 9, 2024
1 parent 8029434 commit cc07039
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev-support/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions dev-support/docker/Dockerfile_centos_7
Original file line number Diff line number Diff line change
Expand Up @@ -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
######
Expand Down

0 comments on commit cc07039

Please sign in to comment.