mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 19:14:04 +00:00
Fix Fedora rawhide CI failure caused by coreutils-single and our way of running under QEMU. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
39 lines
809 B
Cheetah
39 lines
809 B
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 \
|
|
protobuf-python \
|
|
python \
|
|
python-ipaddr \
|
|
python-yaml \
|
|
tar
|
|
|
|
# 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
|
|
|
|
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)
|
|
|