2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00
criu/scripts/build/Dockerfile.linux32.tmpl
Adrian Reber 288adfc591 ci: remove ccache setup
ccache was set up in Travis to speed up compilation by re-using the
.ccache directory from previous CI runs. As we are no longer using
Travis we can remove all CI related ccache setup.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03 10:31:00 -07:00

48 lines
1.0 KiB
Cheetah

ARG CC=gcc
ARG ENV1=FOOBAR
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 \
python3-future
COPY . /criu
WORKDIR /criu
ENV $ENV1=yes
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