mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-03 15:23:04 +00:00
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:
parent
9c46e087ef
commit
8876c4bbb8
2 changed files with 16 additions and 0 deletions
13
scripts/build/Dockerfile.alpine
Normal file
13
scripts/build/Dockerfile.alpine
Normal 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)
|
||||
|
|
@ -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 $< ../..
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue