Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Wait until docker registry is ready (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
johscheuer authored Aug 18, 2020
1 parent d571fe1 commit 113ffec
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions local_dev/run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 113ffec

Please sign in to comment.