2021-02-24 16:32:12 +00:00
|
|
|
FROM centos:8
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
|
2023-02-16 18:26:40 +00:00
|
|
|
# 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-*
|
2021-02-24 16:32:12 +00:00
|
|
|
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
|
2023-02-16 18:26:40 +00:00
|
|
|
RUN yum -y install e2fsprogs-libs e2fsprogs-devel
|
2021-02-24 16:32:12 +00:00
|
|
|
RUN yum -y install zlib-devel lzo-devel libzstd-devel zstd
|
2023-12-04 17:40:30 +00:00
|
|
|
RUN yum -y install make gcc tar gzip clang
|
2021-02-24 16:32:12 +00:00
|
|
|
RUN yum -y install python3 python3-devel python3-setuptools
|
|
|
|
|
|
|
|
# For downloading fresh sources
|
|
|
|
RUN yum -y install wget
|
|
|
|
|
|
|
|
# For running tests
|
|
|
|
RUN yum -y install util-linux e2fsprogs findutils grep
|
|
|
|
RUN yum -y install udev device-mapper acl attr xz
|
|
|
|
|
2023-03-01 15:10:53 +00:00
|
|
|
RUN yum -y install libsodium-devel
|
|
|
|
|
2021-02-24 16:32:12 +00:00
|
|
|
# For debugging
|
|
|
|
RUN yum -y install less vim
|
|
|
|
|
|
|
|
COPY ./test-build .
|
|
|
|
COPY ./run-tests .
|
|
|
|
COPY ./devel.tar.gz .
|
|
|
|
|
2024-01-26 05:00:23 +00:00
|
|
|
CMD ./test-build devel --disable-documentation --disable-libudev --disable-zoned
|
2021-02-24 16:32:12 +00:00
|
|
|
|
|
|
|
# Continue with:
|
|
|
|
# cd /tmp
|
|
|
|
# (see CMD above)
|
|
|
|
# ./run-tests /tmp/btrfs-progs-devel
|