diff --git a/scripts/build/Dockerfile.fedora.tmpl b/scripts/build/Dockerfile.fedora.tmpl index 184f0019a..918849a7b 100644 --- a/scripts/build/Dockerfile.fedora.tmpl +++ b/scripts/build/Dockerfile.fedora.tmpl @@ -1,42 +1,8 @@ ARG CC=gcc ARG ENV1=FOOBAR -RUN dnf install -y \ - ccache \ - diffutils \ - findutils \ - gcc \ - git \ - gnutls-devel \ - gzip \ - iproute \ - iptables \ - nftables \ - nftables-devel \ - libaio-devel \ - libasan \ - libcap-devel \ - libnet-devel \ - libnl3-devel \ - make \ - procps-ng \ - protobuf-c-devel \ - protobuf-devel \ - python3-flake8 \ - python3-PyYAML \ - python3-future \ - python3-protobuf \ - python3-junit_xml \ - redhat-rpm-config \ - sudo \ - tar \ - which \ - e2fsprogs \ - rubygem-asciidoctor \ - kmod - -RUN ln -sf python3 /usr/bin/python -ENV PYTHON=python3 +COPY scripts/ci/prepare-for-fedora-rawhide.sh /bin/prepare-for-fedora-rawhide.sh +RUN /bin/prepare-for-fedora-rawhide.sh COPY . /criu WORKDIR /criu @@ -49,4 +15,3 @@ RUN mv .ccache /tmp && make mrproper && ccache -sz && \ RUN adduser -u 1000 test RUN make -C test/zdtm -j $(nproc) - diff --git a/scripts/ci/prepare-for-fedora-rawhide.sh b/scripts/ci/prepare-for-fedora-rawhide.sh new file mode 100755 index 000000000..1b2273b3b --- /dev/null +++ b/scripts/ci/prepare-for-fedora-rawhide.sh @@ -0,0 +1,37 @@ +#!/bin/bash +set -e -x + +dnf install -y \ + ccache \ + diffutils \ + findutils \ + gcc \ + git \ + gnutls-devel \ + gzip \ + iproute \ + iptables \ + nftables \ + nftables-devel \ + libaio-devel \ + libasan \ + libcap-devel \ + libnet-devel \ + libnl3-devel \ + make \ + procps-ng \ + protobuf-c-devel \ + protobuf-devel \ + python3-flake8 \ + python3-PyYAML \ + python3-future \ + python3-protobuf \ + python3-junit_xml \ + python-unversioned-command \ + redhat-rpm-config \ + sudo \ + tar \ + which \ + e2fsprogs \ + rubygem-asciidoctor \ + kmod