From cfc093bb6af70e3bdedcbf99e6c7279df9d47c09 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 16 Feb 2023 19:26:40 +0100 Subject: [PATCH] btrfs-progs: ci: fix Centos 8 package urls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A fresh build of Centos 8 fails due to changes in upstream repositoris: "Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist" There are repositories no longer updated (and missing some packages like reiserfs-utils) but for our CI purposes it's sufficient so make it work. Signed-off-by: David Sterba --- ci/images/ci-centos-8-x86_64/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/images/ci-centos-8-x86_64/Dockerfile b/ci/images/ci-centos-8-x86_64/Dockerfile index c6614955..37536ee7 100644 --- a/ci/images/ci-centos-8-x86_64/Dockerfile +++ b/ci/images/ci-centos-8-x86_64/Dockerfile @@ -3,12 +3,15 @@ FROM centos:8 WORKDIR /tmp RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org +# Errors due to missing mirrors since 01/2022 +RUN sed -i -e "s|mirrorlist=|#mirrorlist=|" /etc/yum.repos.d/CentOS-* +RUN sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|" /etc/yum.repos.d/CentOS-* RUN yum -y install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm RUN yum -y install epel-release RUN yum -y install autoconf automake pkg-config RUN yum -y install libattr-devel libblkid-devel libuuid-devel -RUN yum -y install e2fsprogs-libs e2fsprogs-devel reiserfs-utils +RUN yum -y install e2fsprogs-libs e2fsprogs-devel RUN yum -y install zlib-devel lzo-devel libzstd-devel zstd RUN yum -y install make gcc tar gzip clang RUN yum -y install python3 python3-devel python3-setuptools