mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
We need a few jobs to check a compatibility with python3 v2: fix inhfd and rpc tests Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
51 lines
1.1 KiB
Cheetah
51 lines
1.1 KiB
Cheetah
ARG CC=gcc
|
|
ARG ENV1=FOOBAR
|
|
|
|
RUN dnf install -y \
|
|
ccache \
|
|
findutils \
|
|
gcc \
|
|
git \
|
|
iproute \
|
|
iptables \
|
|
libaio-devel \
|
|
libasan \
|
|
libcap-devel \
|
|
libnet-devel \
|
|
libnl3-devel \
|
|
make \
|
|
procps-ng \
|
|
protobuf-c-devel \
|
|
protobuf-devel \
|
|
python2-protobuf \
|
|
python2 \
|
|
# Starting with Fedora 28 this is python2-ipaddress
|
|
python-ipaddress \
|
|
# Starting with Fedora 28 this is python2-pyyaml
|
|
python-yaml \
|
|
python3-pip \
|
|
python2-future \
|
|
python3-PyYAML \
|
|
python3-future \
|
|
python3-protobuf \
|
|
python3-junit_xml \
|
|
tar \
|
|
which \
|
|
e2fsprogs \
|
|
asciidoc xmlto
|
|
|
|
# Replace coreutils-single with "traditional" coreutils
|
|
# to fix the following error on Fedora 28/rawhide while
|
|
# running under QEMU:
|
|
# > sh: /usr/bin/sort: /usr/bin/coreutils: bad interpreter: No such file or directory
|
|
RUN dnf install -y --allowerasing coreutils
|
|
|
|
RUN ln -sf python3 /usr/bin/python
|
|
|
|
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
|
|
RUN make -C test/zdtm -j $(nproc)
|