From 0f4f680690132c45ad702f5ef7bd1b440afa6033 Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Sat, 26 Sep 2026 00:38:55 +0300 Subject: [PATCH] ci: upgrade CI Dockerfile base image to RHEL 9 Switch from golang-1.20 (CentOS 7, glibc 2.17) to rhel-9-release-golang-1.25-openshift-4.22 (RHEL 9, glibc 2.34). CentOS 7 only provides Node 16 via EPEL, but chectl now requires Node >= 18. RHEL 9 ships Node 18+ in AppStream and has glibc 2.34, compatible with official Node.js binaries. Also removes the CentOS mirror workaround (not needed on RHEL 9) and switches yum to dnf. Co-Authored-By: Claude Opus 4.6 --- .ci/openshift-ci/Dockerfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.ci/openshift-ci/Dockerfile b/.ci/openshift-ci/Dockerfile index 0f2a70e5089..8c011ea9b12 100644 --- a/.ci/openshift-ci/Dockerfile +++ b/.ci/openshift-ci/Dockerfile @@ -11,20 +11,15 @@ # Red Hat, Inc. - initial API and implementation # Dockerfile to bootstrap build and test in openshift-ci -FROM registry.ci.openshift.org/openshift/release:golang-1.20 +FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.25-openshift-4.22 # hadolint ignore=DL3002 USER 0 SHELL ["/bin/bash", "-c"] -# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org -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 - # hadolint ignore=DL3041 # Install yq, kubectl, chectl cli. -RUN yum install --assumeyes -d1 psmisc python3-pip httpd-tools nodejs && \ +RUN dnf install --assumeyes -q psmisc python3-pip httpd-tools nodejs && \ pip3 install --upgrade setuptools && \ pip3 install yq && \ curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \