criu/scripts/build/Dockerfile.alpine
Kir Kolyshkin e4000c59a7 Dockerfiles: don't ignore make failures
Commit 299e4b4 ("travis: enable ccache for docker/qemu builds") combined
multiple RUN statements in Dockerfiles into a single one, which is good
for performance (as there is an intermediate cache created after each
statement). Unfortunately, it partially did so by combining statements
with use of semicolons, meaning we are ignoring non-zero exit codes.
As a result, failure from make are ignored and Travis builds are all
green.

To fix, replace all occurences of semicolon with &&.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-04-02 18:12:10 +03:00

33 lines
778 B
Text

FROM alpine:3.5
ARG CC=gcc
ARG ENV1=FOOBAR
RUN apk update && apk add \
build-base \
coreutils \
git \
protobuf-c-dev \
protobuf-dev \
python \
libaio-dev \
libcap-dev \
libnl3-dev \
pkgconfig \
libnet-dev \
ccache \
$CC
COPY . /criu
WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -s && \
date && make -j $(nproc) CC="$CC" && date
# Run a test
RUN apk add py-yaml \
py-pip \
ip6tables \
iptables \
iproute2 \
&& pip install protobuf \
&& make -C test/zdtm/static env00