#13 test: Cleanup images before pulling the ones we need
Merged 3 years ago by mmarusak. Opened 3 years ago by mmarusak.
rpms/ mmarusak/cockpit-podman cleanup-images  into  master

file modified
+5 -1
@@ -39,6 +39,9 @@ 

  # 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 @@ 

  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

no initial comment

We used to have a conflict with the cockpit/tasks container, but fortunately we got rid of that.
OOI, which images are on the default testbeds that get in the way? Should be ok I think, as these tests really don't run against some "random production" machine.

:thumbsup:

which images are on the default testbeds that get in the way?

This was issue in rhel gating where there was some testimage left behind. And I though to keep rhel and fedora gating in sync, thus sending here as well.

Pull-Request has been merged by mmarusak

3 years ago