mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 11:50:18 +00:00
ci: do not assume Docker is availble on the minikube host
Instead of using the Docker command to push the image to to minikube VM, read the image from stdin over ssh and load it with the Docker command that is available inside the VM. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
89b326c896
commit
06066cd153
@ -26,7 +26,13 @@ function copy_image_to_cluster() {
|
||||
${CONTAINER_CMD} tag "${build_image}" "${final_image}"
|
||||
return
|
||||
fi
|
||||
${CONTAINER_CMD} save "${build_image}" | (eval "$(${minikube} docker-env --shell bash)" && docker load && docker tag "${build_image}" "${final_image}")
|
||||
|
||||
# "minikube ssh" fails to read the image, so use standard ssh instead
|
||||
${CONTAINER_CMD} save "${build_image}" | \
|
||||
ssh \
|
||||
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
|
||||
-i "$(${minikube} ssh-key)" -l docker \
|
||||
"$(${minikube} ip)" docker image load
|
||||
}
|
||||
|
||||
# parse the minikube version, return the digit passed as argument
|
||||
|
Loading…
Reference in New Issue
Block a user