mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-30 05:21:57 +00:00
It took a little time on travis (I didn't measure, just starred at build and it added not visible delay for build). But it will help to verify that compel works on all supported arches. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
30 lines
925 B
Cheetah
30 lines
925 B
Cheetah
ARG CC=gcc
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
protobuf-c-compiler \
|
|
libprotobuf-c0-dev \
|
|
libprotobuf-dev \
|
|
bsdmainutils \
|
|
protobuf-compiler \
|
|
python-minimal \
|
|
libaio-dev \
|
|
libcap-dev \
|
|
iptables \
|
|
libnl-3-dev \
|
|
libselinux-dev \
|
|
pkg-config \
|
|
git-core \
|
|
libnet-dev \
|
|
$CC
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
|
|
RUN make mrproper
|
|
RUN make -j $(nproc) CC=$CC V=1 criu/parasite-syscall.o
|
|
RUN make -j $(nproc) CC=$CC V=1
|
|
RUN make mrproper
|
|
RUN bash -c 'CLEAN="$(git clean -ndx --exclude=scripts/build --exclude=.config)"; echo "${CLEAN}"; test -z "${CLEAN}"; exit $?'
|
|
RUN make -j $(nproc) CC=$CC -C test/zdtm
|
|
RUN make test/compel/handle_binary && ./test/compel/handle_binary
|