From: Kai Moritz Date: Sun, 7 Jun 2020 09:22:04 +0000 (+0200) Subject: streams - Übungen - Microservices - Schritt 01 X-Git-Tag: tmp~19 X-Git-Url: https://juplo.de/gitweb/?p=demos%2Fmicroservices;a=commitdiff_plain;h=c0cb609d8b375297763d35a4c4bc6bad58b53ed7;hp=7f29a04ba764a92a25e82e2848a30ca284c9ff18 streams - Übungen - Microservices - Schritt 01 -- README.sh wartet auf /actuator/health, anstatt eine fixe Zeit --- diff --git a/README.sh b/README.sh index 6c3eba1..cf63d49 100755 --- a/README.sh +++ b/README.sh @@ -22,7 +22,7 @@ kafka-topics --zookeeper zookeeper:2181 --if-not-exists --create --replication-f docker-compose up -d take-order kafka-avro-console-consumer --bootstrap-server kafka:9092 --topic orders & -sleep 10 # TODO: Warum ist /health nicht erreichbar?!? +until [ `{ http 0:8091/actuator/health 2>/dev/null || echo '{"status":"DOWN"}'; } | jq -r .status` == "UP" ]; do echo "Waiting for take-order..."; sleep 1; done http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity=5 http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity= http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity=-5