From 3d0386f27ca66379acf50199e1d1298386eeeeb8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 02:55:53 +0200 Subject: Adding upstream version 3.2.1. Signed-off-by: Daniel Baumann --- ci/fedora/Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/fedora/Dockerfile (limited to 'ci/fedora') diff --git a/ci/fedora/Dockerfile b/ci/fedora/Dockerfile new file mode 100644 index 0000000..0997a1e --- /dev/null +++ b/ci/fedora/Dockerfile @@ -0,0 +1,22 @@ +FROM fedora:29 + +WORKDIR "/tmp" +CMD ["/bin/bash"] + +RUN dnf install -y mock rpkg git + +# for scripts/make-distrofiles.sh +RUN dnf install -y dpkg-dev perl-Digest-* + +# add OBS repo with Knot DNS to mock +RUN curl -Lo obs-epel7.repo 'https://download.opensuse.org/repositories/home:CZ-NIC:knot-resolver-testing/CentOS_7_EPEL/home:CZ-NIC:knot-resolver-testing.repo' +RUN sed -i -e "/^config_opts\[.yum.conf.]/r obs-epel7.repo" /etc/mock/epel-7-x86_64.cfg +RUN curl -Lo obs-fedora.repo 'https://download.opensuse.org/repositories/home:CZ-NIC:knot-resolver-testing/Fedora_29/home:CZ-NIC:knot-resolver-testing.repo' +RUN sed -i -e "/^config_opts\[.yum.conf.]/r obs-fedora.repo" /etc/mock/fedora-29-x86_64.cfg + +# cache packages in mock to speed up CI tests +# This would require privileged build: https://github.com/moby/moby/issues/1916 +# RUN dnf download --source knot-resolver +# RUN mock --no-clean --dnf --old-chroot -r epel-7-x86_64 --rebuild knot-resolver-*.src.rpm +# RUN mock --no-clean --old-chroot -r fedora-29-x86_64 --rebuild knot-resolver-*.src.rpm +# RUN rm *.src.rpm -- cgit v1.2.3