diff --git a/local_dev/run_e2e_tests.sh b/local_dev/run_e2e_tests.sh index 9ea56c3..29cc526 100755 --- a/local_dev/run_e2e_tests.sh +++ b/local_dev/run_e2e_tests.sh @@ -16,8 +16,16 @@ ILLUMINATIO_IMAGE="${DOCKER_REGISTRY}/illuminatio-runner:dev" docker build -t "${ILLUMINATIO_IMAGE}" . # Use minikube docker daemon to push to the insecure registry - -docker push "${ILLUMINATIO_IMAGE}" +counter=0 +while ! docker push "${ILLUMINATIO_IMAGE}" &> /dev/null; do + if [[ "$counter" -gt 25 ]]; then + echo "Error: could not push image \'${ILLUMINATIO_IMAGE}\" to registry" + exit 1 + fi + echo "Wait for docker regsitry to become ready" + counter=$((counter+1)) + sleep 5 +done if [[ -n "${CI:-}" ]]; then