Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Dockerfile.alpine « build « scripts - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29a7540580519e72311c97c2efc3ea822ba5e36c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM alpine
ARG CC=gcc
ARG ENV1=FOOBAR

RUN apk update && apk add \
	$CC \
	bash \
	build-base \
	ccache \
	coreutils \
	git \
	gnutls-dev \
	libaio-dev \
	libcap-dev \
	libnet-dev \
	libnl3-dev \
	nftables \
	pkgconfig \
	protobuf-c-dev \
	protobuf-dev \
	python \
	sudo

COPY . /criu
WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -sz && \
	date && make -j $(nproc) CC="$CC" && date && ccache -s

RUN apk add \
	py-pip	\
	ip6tables \
	iptables \
	iproute2 \
	tar \
	bash \
	go \
	e2fsprogs \
	asciidoctor

# The rpc test cases are running as user #1000, let's add the user
RUN adduser -u 1000 -D test

RUN pip install PyYAML future protobuf ipaddress junit_xml flake8
RUN make -C test/zdtm