Skip to content

Commit

Permalink
hack: copy k8s image
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Sep 15, 2022
1 parent 9f13916 commit 264c00d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions test/vm.install
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,22 @@ if [ "$ID" = "fedora" ]; then
fi
fi

# copy images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
for img in quay.io/libpod/busybox quay.io/libpod/alpine quay.io/cockpit/registry:2; do
podman save $img | sudo -i -u admin podman load
done
loginctl disable-linger $(id -u admin)
# HACK HACK
if [ "$ID" = "ubuntu" ]; then
# copy images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
for img in quay.io/libpod/busybox quay.io/libpod/alpine quay.io/cockpit/registry:2 k8s.gcr.io/pause:3.5; do
podman save $img | sudo -i -u admin podman load
done
loginctl disable-linger $(id -u admin)
else
# copy images for user podman tests; podman insists on user session
loginctl enable-linger $(id -u admin)
for img in quay.io/libpod/busybox quay.io/libpod/alpine quay.io/cockpit/registry:2; do
podman save $img | sudo -i -u admin podman load
done
loginctl disable-linger $(id -u admin)
fi

# 15minutes after boot tmp files are removed and podman stores some tmp lock files
systemctl disable --now systemd-tmpfiles-clean.timer
Expand Down

0 comments on commit 264c00d

Please sign in to comment.