mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
This commit removes the dependency on the __future__ module, which was used to enable Python 3 features in Python 2 code. With support for Python 2 being dropped, it is no longer necessary to maintain backward compatibility. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
44 lines
996 B
Cheetah
44 lines
996 B
Cheetah
ARG CC=gcc
|
|
|
|
COPY scripts/ci/apt-install /bin/apt-install
|
|
|
|
RUN apt-install \
|
|
libnet-dev \
|
|
libnl-route-3-dev \
|
|
$CC \
|
|
bsdmainutils \
|
|
build-essential \
|
|
git-core \
|
|
iptables \
|
|
libaio-dev \
|
|
libcap-dev \
|
|
libgnutls28-dev \
|
|
libgnutls30 \
|
|
libnl-3-dev \
|
|
libprotobuf-c-dev \
|
|
libprotobuf-dev \
|
|
libselinux-dev \
|
|
pkg-config \
|
|
protobuf-c-compiler \
|
|
protobuf-compiler \
|
|
python3-minimal
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
|
|
RUN uname -m && setarch linux32 uname -m && setarch --list
|
|
|
|
RUN make mrproper && date && \
|
|
# Check single object build
|
|
setarch linux32 make -j $(nproc) CC="$CC" criu/parasite-syscall.o && \
|
|
# Compile criu
|
|
setarch linux32 make -j $(nproc) CC="$CC" && \
|
|
date && \
|
|
# Check that "make mrproper" works
|
|
setarch linux32 make mrproper && ! git clean -ndx --exclude=scripts/build \
|
|
--exclude=.config --exclude=test | grep .
|
|
|
|
# Compile tests
|
|
RUN date && setarch linux32 make -j $(nproc) CC="$CC" -C test/zdtm && date
|
|
|
|
#RUN make test/compel/handle_binary && ./test/compel/handle_binary
|