mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 09:05:10 +00:00
The scripts installing dependencies are now copied and executed before copying the full source tree. This allows to cache the dependency installation layers as long as these scripts remain unchanged. Previously, copying the entire repository invalidated the cache on every source change. While our CI intentionally doesn't preserve cached layers across independent runs, the changes in this patch help with local testing when investigating issues. Examples: - sudo -E make -C scripts/ci alpine GCC=1 - sudo -E make -C scripts/ci alpine CLANG=1 Suggested-by: Andrei Vagin <avagin@google.com> Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
19 lines
489 B
Text
19 lines
489 B
Text
FROM docker.io/library/archlinux:latest
|
|
|
|
ARG CC=gcc
|
|
|
|
# Initialize machine ID
|
|
RUN systemd-machine-id-setup
|
|
|
|
COPY contrib/dependencies/pacman-packages.sh /criu/contrib/dependencies/pacman-packages.sh
|
|
WORKDIR /criu
|
|
RUN pacman -Syu --noconfirm "$CC" && /criu/contrib/dependencies/pacman-packages.sh
|
|
|
|
COPY . /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
|