criu/scripts/build/Dockerfile.alpine
Alexander Mikhalitsyn acb42456dc zdtm: nft tables preservation test
Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
Signed-off-by: Alexander Mikhalitsyn <alexander@mihalicyn.com>
[Added test_author to zdtm test]
Signed-off-by: Dmitry Safonov <dima@arista.com>
2020-02-04 12:39:43 -08:00

46 lines
792 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 \
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 \
nftables \
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