X-Git-Url: https://juplo.de/gitweb/?p=demos%2Fmicroservices;a=blobdiff_plain;f=README.sh;h=cf63d49c233ed9d64a1f53e08da723b400cc4895;hp=6c3eba1e78671ecbb19394653b2561dcf728319e;hb=c0cb609d8b375297763d35a4c4bc6bad58b53ed7;hpb=7f29a04ba764a92a25e82e2848a30ca284c9ff18 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