From 7faebe900d3cd9077a4293915cec3f640f192c06 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 7 Jun 2020 11:37:39 +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=20(REDONE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (Version aus ursprünglicher Übung übernommen) --- README.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.sh b/README.sh index cf63d49..158dff3 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 & -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 +while ! [[ $(http 0:8091/actuator/health 2> /dev/null) =~ "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