Replace CentOS 7 with Rocky Linux 8 in the CI jobs (!124)

CentOS reached its end of life on 30 June 2024 and has been discontinued
[1][2].  Instead switch to Rocky Linux 8 which is an open-source rebuild
of RHEL 8 [3].

[1] What to know about CentOS Linux EOL
    https://www.redhat.com/en/topics/linux/centos-linux-eol
[2] CentOS Linux is going End of Life, What does that mean for me?
    https://www.redhat.com/en/blog/centos-linux-going-end-life-what-does-mean-me
[3] Rocky Linux
    https://rockylinux.org/

Closes !124 - Update CI jobs for Ubuntu 24.04 LTS and use Rocky Linux 8
This commit is contained in:
Mike Fleetwood 2024-08-05 07:42:27 +01:00
parent 558ee66e69
commit c32d23fad6
1 changed files with 17 additions and 16 deletions

View File

@ -16,24 +16,25 @@ stages:
dosfstools mtools f2fs-tools jfsutils cryptsetup lvm2 udftools dosfstools mtools f2fs-tools jfsutils cryptsetup lvm2 udftools
xfsprogs xfsprogs-extra xvfb-run kmod gzip eudev xfsprogs xfsprogs-extra xvfb-run kmod gzip eudev
.centos_image_template: &centos_image_definition .rocky_image_template: &rocky_image_definition
# Use official CentOS image https://hub.docker.com/_/centos/. # Use official Rocky Linux image https://hub.docker.com/_/rockylinux/.
image: centos:centos7 image: rockylinux:8
before_script: before_script:
- cat /proc/version - cat /proc/version
- cat /etc/os-release - cat /etc/os-release
- yum update -y - dnf update -y
- yum install -y which gnome-common yelp-tools glib2-devel gcc-c++ # Enable PowerTools repo for development packages.
- dnf install -y 'dnf-command(config-manager)'
- dnf config-manager --set-enabled powertools
- dnf install -y which gnome-common yelp-tools glib2-devel gcc-c++
libuuid-devel parted-devel gtkmm30-devel make polkit file libuuid-devel parted-devel gtkmm30-devel make polkit file
polkit-devel gettext-devel polkit-devel gettext-devel
# Extra packages only needed during the test stage. # Extra packages only needed during the test stage.
# Install EPEL repo first for f2fs-tools and ntfsprogs. # Install EPEL repo first for exfatprogs and ntfsprogs.
- yum install -y epel-release - dnf install -y epel-release
- yum install -y btrfs-progs e2fsprogs exfatprogs f2fs-tools dosfstools - dnf install -y e2fsprogs dosfstools exfatprogs mtools util-linux
mtools hfsplus-tools util-linux cryptsetup device-mapper cryptsetup device-mapper lvm2 ntfsprogs udftools xfsprogs
lvm2 ntfsprogs udftools xfsprogs xfsdump xfsdump xorg-x11-server-Xvfb kmod
xorg-x11-server-Xvfb kmod
- systemd-machine-id-setup
.ubuntu_image_template: &ubuntu_image_definition .ubuntu_image_template: &ubuntu_image_definition
# Use official Ubuntu image https://hub.docker.com/_/ubuntu/. # Use official Ubuntu image https://hub.docker.com/_/ubuntu/.
@ -102,8 +103,8 @@ alpine_build:
<<: *alpine_image_definition <<: *alpine_image_definition
<<: *build_stage_definition <<: *build_stage_definition
centos_build: rocky_build:
<<: *centos_image_definition <<: *rocky_image_definition
<<: *build_stage_definition <<: *build_stage_definition
ubuntu_build: ubuntu_build:
@ -116,8 +117,8 @@ alpine_test:
<<: *alpine_image_definition <<: *alpine_image_definition
<<: *test_stage_definition <<: *test_stage_definition
centos_test: rocky_test:
<<: *centos_image_definition <<: *rocky_image_definition
<<: *test_stage_definition <<: *test_stage_definition
ubuntu_test: ubuntu_test: