btrfs-progs: ci: fix Centos 8 package urls

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 <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-02-16 19:26:40 +01:00
parent 3d9217f7ab
commit cfc093bb6a
1 changed files with 4 additions and 1 deletions

View File

@ -3,12 +3,15 @@ FROM centos:8
WORKDIR /tmp WORKDIR /tmp
RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 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 https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
RUN yum -y install epel-release RUN yum -y install epel-release
RUN yum -y install autoconf automake pkg-config RUN yum -y install autoconf automake pkg-config
RUN yum -y install libattr-devel libblkid-devel libuuid-devel 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 zlib-devel lzo-devel libzstd-devel zstd
RUN yum -y install make gcc tar gzip clang RUN yum -y install make gcc tar gzip clang
RUN yum -y install python3 python3-devel python3-setuptools RUN yum -y install python3 python3-devel python3-setuptools