2021-07-24 11:27:48 +02:00
|
|
|
FROM docker.io/library/archlinux:latest
|
|
|
|
|
|
|
|
ARG CC=gcc
|
|
|
|
|
2023-03-15 12:20:47 +00:00
|
|
|
# Initialize machine ID
|
|
|
|
RUN systemd-machine-id-setup
|
|
|
|
|
2021-07-24 11:27:48 +02:00
|
|
|
RUN pacman -Syu --noconfirm \
|
|
|
|
$CC \
|
|
|
|
bash \
|
|
|
|
make \
|
|
|
|
coreutils \
|
|
|
|
git \
|
|
|
|
gnutls \
|
|
|
|
libaio \
|
|
|
|
libcap \
|
|
|
|
libnet \
|
|
|
|
libnl \
|
|
|
|
nftables \
|
|
|
|
pkgconfig \
|
|
|
|
protobuf-c \
|
|
|
|
protobuf \
|
|
|
|
python-pip \
|
|
|
|
python-protobuf \
|
|
|
|
which \
|
|
|
|
sudo \
|
|
|
|
iptables \
|
|
|
|
nftables \
|
|
|
|
iproute2 \
|
|
|
|
tar \
|
|
|
|
bash \
|
|
|
|
go \
|
|
|
|
python-yaml \
|
|
|
|
asciidoctor \
|
|
|
|
python-junit-xml \
|
2022-12-04 16:27:09 +00:00
|
|
|
python-importlib-metadata \
|
2023-09-30 02:56:52 +01:00
|
|
|
libdrm \
|
2025-01-23 09:26:15 +00:00
|
|
|
util-linux-libs \
|
2021-07-24 11:27:48 +02:00
|
|
|
diffutils
|
|
|
|
|
|
|
|
COPY . /criu
|
|
|
|
WORKDIR /criu
|
|
|
|
RUN make mrproper && date && make -j $(nproc) CC="$CC" && date
|
|
|
|
|
|
|
|
# The rpc test cases are running as user #1000, let's add the user
|
|
|
|
RUN useradd -u 1000 test
|
|
|
|
|
|
|
|
RUN make -C test/zdtm
|