criu/tests/run-podman-checkpoint-restore.sh
Adrian Reber 92467b1b63 Disable podman checkpoint/restore tests
crun is not built against criu-devel. Disable test for now.

Resolves: rhbz#1955119
2021-05-05 12:31:58 -04:00

31 lines
642 B
Bash
Executable File

#!/bin/bash
# crun is not built with checkpoint/restore support
exit 0
set -eux
ls -la
echo "Start container"
podman --log-level debug run -d quay.io/adrianreber/counter
echo "See which containers are running"
podman ps
echo "Connect to the container"
curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8088
echo "Checkpoint container"
podman --log-level debug container checkpoint -l
podman ps -a
echo "Restore container"
podman --log-level debug container restore -l
podman ps -a
echo "Check if we can connect to the restored container"
curl `podman inspect -l | jq -r '.[0].NetworkSettings.IPAddress'`:8088
ls -la