mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
dd10e66a98
This way, it can easier be re-used for other container images. Signed-off-by: Niels de Vos <ndevos@redhat.com>
16 lines
417 B
Bash
Executable File
16 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# When an image was built with podman, it needs importing into minikube.
|
|
#
|
|
|
|
# fail when a command returns an error
|
|
set -e -o pipefail
|
|
|
|
# "minikube ssh" fails to read the image, so use standard ssh instead
|
|
podman image save "${1}" | \
|
|
ssh \
|
|
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
|
|
-l docker -i "$(minikube ssh-key)" \
|
|
"$(minikube ip)" docker image load
|
|
|