2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00
criu/scripts/build/Dockerfile.alpine
Adrian Reber 288adfc591 ci: remove ccache setup
ccache was set up in Travis to speed up compilation by re-using the
.ccache directory from previous CI runs. As we are no longer using
Travis we can remove all CI related ccache setup.

Signed-off-by: Adrian Reber <areber@redhat.com>
2021-09-03 10:31:00 -07:00

53 lines
786 B
Docker

FROM alpine
ARG CC=gcc
ARG ENV1=FOOBAR
RUN apk update && apk add \
$CC \
bash \
build-base \
coreutils \
git \
gnutls-dev \
libaio-dev \
libcap-dev \
libnet-dev \
libnl3-dev \
nftables \
nftables-dev \
pkgconfig \
protobuf-c-dev \
protobuf-dev \
py3-pip \
py3-protobuf \
python3 \
sudo
COPY . /criu
WORKDIR /criu
ENV $ENV1=yes
RUN make mrproper && date && make -j $(nproc) CC="$CC" && date
RUN apk add \
ip6tables \
iptables \
nftables \
iproute2 \
tar \
bash \
go \
e2fsprogs \
py-yaml \
py3-flake8 \
asciidoctor
# The rpc test cases are running as user #1000, let's add the user
RUN adduser -u 1000 -D test
RUN pip3 install junit_xml
# For zdtm we need an unversioned python binary
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN make -C test/zdtm