while ! [[ $(http 0:8091/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for adder-1..."; sleep 1; done
while ! [[ $(http 0:8092/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for adder-2..."; sleep 1; done
+# tag::nachrichten[]
echo 6 | http -v :8080/peter
echo 6 | http -v :8080/klaus
+# end::nachrichten[]
while [[ "$(http :8091/results | jq -r .)" == "{}" ]]; do echo "Waiting for some results to show up on adder-1..."; sleep 1; done
echo "Resultate für adder-1"
+# tag::resultate[]
http -v :8091/results
+# end::resultate[]
while [[ "$(http :8092/results | jq -r .)" == "{}" ]]; do echo "Waiting for some results to show up on adder-2..."; sleep 1; done
echo "Resultate für adder-2"
+# tag::resultate[]
http -v :8092/results
+# end::resultate[]
docker-compose stop adder-1