From: Kai Moritz Date: Sun, 11 Jun 2023 17:24:08 +0000 (+0200) Subject: Asciidoc-Tags aus Vorlage reingefummelt X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmuster%2Fsumup-adder;p=demos%2Fkafka%2Ftraining Asciidoc-Tags aus Vorlage reingefummelt --- diff --git a/README.sh b/README.sh index 5f11d12..92f4cef 100755 --- a/README.sh +++ b/README.sh @@ -36,6 +36,11 @@ while ! [[ $(http 0:8082/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Wait 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[] + docker-compose up -d peter klaus while [[ "$(http :8091/results | jq -r .)" == "{}" ]]; do echo "Waiting for some results to show up on adder-1..."; sleep 1; done @@ -46,14 +51,18 @@ http -v --pretty none -S :8092/results echo sleep 3 echo "Resultate für adder-1" +# tag::resultate[] http -v --pretty none -S :8091/results +# end::resultate[] echo echo "Resultate für peter von adder-1" http :8091/results/peter | jq .[].sum | uniq echo "Resultate für klaus von adder-1" http :8091/results/klaus | jq .[].sum | uniq echo "Resultate für adder-2" +# tag::resultate[] http -v --pretty none -S :8092/results +# end::resultate[] echo echo "Resultate für peter von adder-2" http :8092/results/peter | jq .[].sum | uniq