mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
The python3 package in Alpine has recently been updated to install symbolic link for /usr/bin/python. https://git.alpinelinux.org/aports/commit/main/python3?id=d91da210b1614eb75517d59b7f348fee01699f35 This causes the following error in CI: Step 10/11 : RUN ln -s /usr/bin/python3 /usr/bin/python ---> Running in a5a94be9dc93 ln: failed to create symbolic link '/usr/bin/python': File exists The command '/bin/sh -c ln -s /usr/bin/python3 /usr/bin/python' returned a non-zero code: 1 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
48 lines
674 B
Text
48 lines
674 B
Text
FROM alpine
|
|
ARG CC=gcc
|
|
|
|
RUN apk update && apk add \
|
|
$CC \
|
|
bash \
|
|
build-base \
|
|
coreutils \
|
|
procps \
|
|
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
|
|
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
|
|
|
|
RUN make -C test/zdtm
|