travis: add a docker file to build on Alpine Linux

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Andrew Vagin 2016-07-08 02:18:53 +03:00 committed by Pavel Emelyanov
parent 9c46e087ef
commit 8876c4bbb8
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
FROM alpine:3.4
RUN apk update && apk add \
build-base \
protobuf-c-dev \
protobuf-dev \
python \
libaio-dev \
libcap-dev \
libnl3-dev \
pkgconfig
COPY . /criu
WORKDIR /criu
RUN make clean && make -j $(nproc)

View file

@ -11,6 +11,9 @@ binfmt_misc:
./binfmt_misc
.PHONY: binfmt_misc
alpine:
docker build -t criu-$@ -f Dockerfile.alpine ../..
%: Dockerfile.% qemu-user-static binfmt_misc
docker build -t criu-$@ -f $< ../..