X-Git-Url: https://juplo.de/gitweb/?p=demos%2Fkafka%2Fwordcount;a=blobdiff_plain;f=README.sh;fp=README.sh;h=6ee9c3393eeba22cbdd77a190f3192ebab0b8f3b;hp=08717b161223dfc7d66d80238024f3e96691c769;hb=3f6f72f361d2157dcf7ab61bef85aecea1bc49e4;hpb=fab2dc10eb67a54a4d4b42076823c450de55f0aa diff --git a/README.sh b/README.sh index 08717b1..6ee9c33 100755 --- a/README.sh +++ b/README.sh @@ -9,7 +9,7 @@ QUERY=juplo/wordcount--query:1.0.2 if [ "$1" = "cleanup" ] then - docker-compose down -v + docker-compose down -v --remove-orphans docker image rm $FORTUNE docker image rm $RECORDER docker image rm $USERS @@ -63,3 +63,20 @@ http -v post :8082/users username=riddler firstName=Rumpel lastName=Stilzchen se echo "Starting all instances..." docker-compose up -d + +while [ "$(http :8085/actuator/health 2>/dev/null | jq -r .status)" != "UP" ]; do echo "Waiting for service query..."; sleep 1; done +http -v :8085/bart +sleep 1 +http -v :8085/bart +sleep 1 +http -v :8085/bart +sleep 1 +http -v :8085/bart +sleep 1 +http -v :8085/bart +sleep 1 +http -v :8085/bart +sleep 1 +http -v :8085/bart +http -v :8085/nerd +http -v :8085/riddler