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
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