2021-02-24 16:32:12 +00:00
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2023-08-23 14:32:50 +00:00
|
|
|
RUN zypper install -y --no-recommends make gcc tar gzip clang dwarves
|
2021-02-24 16:32:12 +00:00
|
|
|
RUN zypper install -y --no-recommends libattr-devel libblkid-devel libuuid-devel
|
2023-02-14 22:42:22 +00:00
|
|
|
RUN zypper install -y --no-recommends libext2fs-devel
|
2021-02-24 16:32:12 +00:00
|
|
|
RUN zypper install -y --no-recommends zlib-devel lzo-devel libzstd-devel
|
2023-08-25 23:00:11 +00:00
|
|
|
RUN zypper install -y --no-recommends autoconf automake pkg-config gawk
|
2021-02-24 16:32:12 +00:00
|
|
|
RUN zypper install -y --no-recommends python3 python3-devel python3-setuptools
|
2021-10-05 15:35:09 +00:00
|
|
|
RUN zypper install -y --no-recommends libudev-devel
|
2021-02-24 16:32:12 +00:00
|
|
|
|
|
|
|
# For downloading fresh sources
|
|
|
|
RUN zypper install -y --no-recommends wget
|
|
|
|
|
|
|
|
# For running tests
|
|
|
|
RUN zypper install -y --no-recommends coreutils util-linux e2fsprogs findutils grep
|
|
|
|
RUN zypper install -y --no-recommends udev device-mapper acl attr xz
|
|
|
|
|
|
|
|
# For debugging
|
|
|
|
RUN zypper install -y --no-recommends less vim
|
|
|
|
|
2021-05-06 21:31:39 +00:00
|
|
|
# Static build
|
|
|
|
RUN zypper install -y --no-recommends glibc-devel-static libblkid-devel-static \
|
|
|
|
libcom_err-devel-static libext2fs-devel-static libuuid-devel-static \
|
|
|
|
libzstd-devel-static lzo-devel-static zlib-devel-static
|
|
|
|
|
2023-02-18 16:01:14 +00:00
|
|
|
RUN zypper install -y --no-recommends gcc13
|
2023-03-01 15:10:53 +00:00
|
|
|
RUN zypper install -y --no-recommends libgcrypt-devel libsodium-devel libkcapi-devel
|
2023-02-18 16:01:14 +00:00
|
|
|
|
2021-02-24 16:32:12 +00:00
|
|
|
COPY ./test-build .
|
|
|
|
COPY ./run-tests .
|
|
|
|
COPY ./devel.tar.gz .
|
|
|
|
|
|
|
|
CMD ./test-build devel --disable-documentation
|
|
|
|
|
|
|
|
# Continue with:
|
|
|
|
# cd /tmp
|
|
|
|
# (see CMD above)
|
|
|
|
# ./run-tests /tmp/btrfs-progs-devel
|
2021-05-06 21:31:39 +00:00
|
|
|
#
|
|
|
|
# To test static build:
|
|
|
|
# cd btrfs-progs-devel
|
|
|
|
# make static
|