mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-30 13:30:19 +00:00
The py-future package has been renamed to py3-future [1] and py2 package for yaml has been dropped [2]. [1] https://git.alpinelinux.org/aports/commit/main?id=316d44abaed13964e97eb43c095cd1b64e3943ad [2] https://git.alpinelinux.org/aports/commit/main?id=e369c1fd7707a73f2c3e2b11b613198d9a4106de Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
44 lines
768 B
Text
44 lines
768 B
Text
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 \
|
|
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
|