From 3f6f72f361d2157dcf7ab61bef85aecea1bc49e4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 16 Oct 2021 15:55:23 +0200 Subject: [PATCH] Added requests for the generated Top-10 to the demonstration --- README.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 -- 2.20.1