From c0cb609d8b375297763d35a4c4bc6bad58b53ed7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 7 Jun 2020 11:22:04 +0200 Subject: [PATCH] =?utf8?q?streams=20-=20=C3=9Cbungen=20-=20Microservices?= =?utf8?q?=20-=20Schritt=2001=20--=20README.sh=20wartet=20auf=20/actuator/?= =?utf8?q?health,=20anstatt=20eine=20fixe=20Zeit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1