criu/scripts/ci/java-test.sh
Shashank Balaji 4c250c1b74 ci: use package-manager dependency install scripts
Currently, adding a package which is required either for development or testing
requires it to be added in multiple places due to many duplicated Dockerfiles
and installation scripts. This makes it difficult to ensure that all scripts
are updated appropriately and can lead to some places being missed.

This patch consolidates the list of dependencies and adds installation
scripts for each package-manager used in our CI (apk, apt, dnf, pacman).

This change also replaces the `debian/dev-packages.lst` as this subfolder
conflicts with the Ubuntu/Debian packing scripts used for CRIU:
https://github.com/rst0git/criu-deb-packages

This patch also removes the CentOS 8 build scripts as it is EOL
and the container registry is no longer available.

Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2025-09-26 11:17:59 +01:00

27 lines
763 B
Bash
Executable file

#!/bin/bash
cd ../.. || exit 1
sudo modprobe iptable_filter
failures=""
docker build -t criu-openj9-ubuntu-test:latest -f scripts/build/Dockerfile.openj9-ubuntu .
if ! docker run --rm --privileged criu-openj9-ubuntu-test:latest; then
failures="$failures openj9-ubuntu"
fi
docker build -t criu-hotspot-alpine-test:latest -f scripts/build/Dockerfile.hotspot-alpine .
if ! docker run --rm --privileged criu-hotspot-alpine-test:latest; then
failures="$failures hotspot-alpine"
fi
docker build -t criu-hotspot-ubuntu-test:latest -f scripts/build/Dockerfile.hotspot-ubuntu .
if ! docker run --rm --privileged criu-hotspot-ubuntu-test:latest; then
failures="$failures hotspot-ubuntu"
fi
if [ -n "$failures" ]; then
echo "Tests failed on $failures"
exit 1
fi