[CRIU] [PATCH 2/2] travis: add a docker file to build on Alpine Linux
Andrey Vagin
avagin at openvz.org
Thu Jul 7 16:18:53 PDT 2016
From: Andrew Vagin <avagin at virtuozzo.com>
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
scripts/build/Dockerfile.alpine | 13 +++++++++++++
scripts/build/Makefile | 3 +++
2 files changed, 16 insertions(+)
create mode 100644 scripts/build/Dockerfile.alpine
diff --git a/scripts/build/Dockerfile.alpine b/scripts/build/Dockerfile.alpine
new file mode 100644
index 0000000..f969b12
--- /dev/null
+++ b/scripts/build/Dockerfile.alpine
@@ -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)
diff --git a/scripts/build/Makefile b/scripts/build/Makefile
index ec4146b..1a3604d 100644
--- a/scripts/build/Makefile
+++ b/scripts/build/Makefile
@@ -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 $< ../..
--
2.7.4
More information about the CRIU
mailing list