From e4df09a428f21fc9e7c24abaef32631a4090fb4c Mon Sep 17 00:00:00 2001 From: jlundqvist-criteo <59700030+jlundqvist-criteo@users.noreply.github.com> Date: Tue, 25 Jun 2024 08:07:37 +0200 Subject: [PATCH] Fix CI errors with centos-stream-8 kitchen suite (#147) centos-stream-8 has reached EoL and its packages are now found at vault.centos.org, leading to failures running the kitchen suite default-centos-stream-8. As the dokken image does not seem to reflect this change yet, we change the baseurl for the CentOS repos to the correct new URL when we set up the image for the kitchen suite. --- .kitchen.docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.kitchen.docker.yml b/.kitchen.docker.yml index 0619ecf..1cf491c 100644 --- a/.kitchen.docker.yml +++ b/.kitchen.docker.yml @@ -20,8 +20,10 @@ platforms: driver: image: dokken/centos-stream-8 intermediate_instructions: - - RUN yum clean all - - RUN yum -y install net-tools lsof + - RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + - RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + - RUN dnf clean all + - RUN dnf -y install net-tools lsof pid_one_command: /usr/lib/systemd/systemd - name: fedora-39