mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 16:51:37 +00:00
After Centos-8 nft used instead of iptables. But we had never supported nft rules in CRIU, and after c/r all rules are flushed. Co-developed-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com> Signed-off-by: Alexander Mikhalitsyn <alexander@mihalicyn.com> Signed-off-by: Dmitry Safonov <dima@arista.com>
50 lines
847 B
Cheetah
50 lines
847 B
Cheetah
ARG CC=gcc
|
|
ARG ENV1=FOOBAR
|
|
|
|
RUN dnf install -y \
|
|
ccache \
|
|
diffutils \
|
|
findutils \
|
|
gcc \
|
|
git \
|
|
gnutls-devel \
|
|
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 \
|
|
sudo \
|
|
tar \
|
|
which \
|
|
e2fsprogs \
|
|
rubygem-asciidoctor \
|
|
kmod
|
|
|
|
RUN ln -sf python3 /usr/bin/python
|
|
ENV PYTHON=python3
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
|
|
ENV CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
|
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
|
|
date && make -j $(nproc) CC="$CC" && date && ccache -s
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
RUN adduser -u 1000 test
|
|
|
|
RUN make -C test/zdtm -j $(nproc)
|
|
|