Merge #13 test: Cleanup images before pulling the ones we need

This commit is contained in:
Matej Marusak 2021-01-07 08:35:07 +00:00
commit 20d5bb60c3

View File

@ -39,6 +39,9 @@ chown -R runtest "$SOURCE"
# disable core dumps, we rather investigate them upstream where test VMs are accessible
echo core > /proc/sys/kernel/core_pattern
# cleanup any images that are on the system
podman rmi -af
# pull images for system podman tests
podman pull docker.io/busybox
podman pull docker.io/alpine
@ -48,9 +51,10 @@ podman pull docker.io/registry:2
mkdir -p /etc/systemd/user/podman.service.d
printf '[Service]\nKillMode=\n' > /etc/systemd/user/podman.service.d/cleanup.conf
# pull images for user podman tests; podman insists on user session
# claenup and pull images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
sudo -i -u admin bash << EOF
podman rmi -af
podman pull docker.io/busybox
podman pull docker.io/alpine
podman pull docker.io/registry:2