treewide: use almalinux instead of centos8
CentOS Linux 8 is EOL, attempting to install packages in it results in an error. CentOS Linux is a rebuild of RHEL (stable versions). The CentOS projects recommends to use CentOS Stream instead, which is a build of the "public development branch for RHEL". After the early EOL was announced on 2020-12-08, alternative projects AlmaLinux and Rocky Linux have been established as binary compatible forks of RHEL 8 (stable versions). Both Alma and Rocky seem to be solid projects, see related Wikipedia articles and their sources. Pick Alma and adjust the whole tree to use the almalinux:8 docker image instead of centos:centos8. Fix for: Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried Related: SYS#5818 Related: https://www.centos.org/cl-vs-cs/ Related: https://www.centos.org/centos-linux-eol/ Related: https://bugs.centos.org/view.php?id=18394 Related: https://en.wikipedia.org/wiki/AlmaLinux Related: https://en.wikipedia.org/wiki/Rocky_Linux Change-Id: I30e1a773b901b1d2187214445116c7f2aecc4e36changes/49/27049/2
parent
bd5b02050d
commit
3817abe0e4
|
@ -1,5 +1,5 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=centos:centos8
|
||||
ARG UPSTREAM_DISTRO=almalinux:8
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
UPSTREAM_DISTRO:=centos:centos8
|
||||
UPSTREAM_DISTRO:=almalinux:8
|
||||
DISTRO:=centos8
|
||||
include ../make/Makefile
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=centos:centos8
|
||||
ARG UPSTREAM_DISTRO=almalinux:8
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
UPSTREAM_DISTRO:=centos:centos8
|
||||
UPSTREAM_DISTRO:=almalinux:8
|
||||
DISTRO:=centos8
|
||||
include ../make/Makefile
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ARG USER
|
||||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=centos:centos8
|
||||
ARG UPSTREAM_DISTRO=almalinux:8
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
|
||||
# dnf-utils: for repoquery
|
||||
|
|
|
@ -39,9 +39,9 @@ docker_distro_from_image_name() {
|
|||
docker_upstream_distro_from_image_name() {
|
||||
case "$1" in
|
||||
osmo-*-centos7) echo "centos:centos7"; ;;
|
||||
osmo-*-centos8) echo "centos:centos8"; ;;
|
||||
osmo-*-centos8) echo "almalinux:8"; ;;
|
||||
centos7-*) echo "centos:centos7" ;;
|
||||
centos8-*) echo "centos:centos8" ;;
|
||||
centos8-*) echo "almalinux:8" ;;
|
||||
debian9-*) echo "debian:stretch" ;;
|
||||
debian10-*) echo "debian:buster" ;;
|
||||
debian11-*) echo "debian:bullseye" ;;
|
||||
|
@ -120,7 +120,7 @@ list_osmo_packages() {
|
|||
# name (e.g. osmo-mgw-master-centos8), it gets removed from the subdir
|
||||
# where the Dockerfile is taken from (e.g. osmo-mgw-master/Dockerfile)
|
||||
# and UPSTREAM_DISTRO and DISTRO are passed accordingly (e.g.
|
||||
# UPSTREAM_DISTRO=centos:centos8 DISTRO=centos8). This allows one
|
||||
# UPSTREAM_DISTRO=almalinux:8 DISTRO=centos8). This allows one
|
||||
# Dockerfile for multiple distributions, without duplicating configs for
|
||||
# each distribution. Dependencies listed in docker_depends() are built
|
||||
# automatically too.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
ARG REGISTRY=docker.io
|
||||
ARG UPSTREAM_DISTRO=centos:centos8
|
||||
ARG UPSTREAM_DISTRO=almalinux:8
|
||||
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
|
||||
# Arguments used after FROM must be specified again
|
||||
ARG DISTRO
|
||||
|
|
Loading…
Reference in New Issue