2017-02-22 20:49:27 +03:00
|
|
|
FROM alpine:3.5
|
2016-10-25 21:46:40 -07:00
|
|
|
ARG CC=gcc
|
2016-07-08 02:18:53 +03:00
|
|
|
RUN apk update && apk add \
|
|
|
|
build-base \
|
2016-10-25 21:46:37 -07:00
|
|
|
coreutils \
|
|
|
|
git \
|
2016-07-08 02:18:53 +03:00
|
|
|
protobuf-c-dev \
|
|
|
|
protobuf-dev \
|
|
|
|
python \
|
|
|
|
libaio-dev \
|
|
|
|
libcap-dev \
|
|
|
|
libnl3-dev \
|
2016-10-25 21:46:40 -07:00
|
|
|
pkgconfig \
|
2016-12-01 11:32:19 +03:00
|
|
|
libnet-dev \
|
2016-10-25 21:46:40 -07:00
|
|
|
$CC
|
2017-02-07 23:52:00 +03:00
|
|
|
|
2016-07-08 02:18:53 +03:00
|
|
|
COPY . /criu
|
|
|
|
WORKDIR /criu
|
2016-10-25 21:46:40 -07:00
|
|
|
RUN make mrproper && make -j $(nproc) CC=$CC
|
2017-02-07 23:52:00 +03:00
|
|
|
|
|
|
|
# to run tests
|
|
|
|
RUN apk add py-yaml \
|
|
|
|
py-pip \
|
|
|
|
ip6tables \
|
|
|
|
iptables \
|
|
|
|
iproute2
|
|
|
|
|
|
|
|
RUN pip install protobuf
|
|
|
|
RUN make -C test/zdtm/static env00
|