2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-24 10:58:36 +00:00
criu/scripts/build/Dockerfile.archlinux
Adrian Reber 54795f174b criu: use libuuid for criu_run_id generation
criu_run_id will be used in upcoming changes to create and remove
network rules for network locking. Instead of trying to come up with
a way to create unique IDs, just use an existing library.

libuuid should be installed on most systems as it is indirectly required
by systemd (via libmount).

Signed-off-by: Adrian Reber <areber@redhat.com>
2025-03-21 12:40:31 -07:00

49 lines
713 B
Docker

FROM docker.io/library/archlinux:latest
ARG CC=gcc
# Initialize machine ID
RUN systemd-machine-id-setup
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 \
python-importlib-metadata \
libdrm \
util-linux-libs \
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