From: Kai Moritz Date: Sun, 29 Jan 2023 14:25:55 +0000 (+0100) Subject: README.sh für die Übung `rest-producer--headers` umgestellt X-Git-Tag: rest-producer--headers X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=cc5d563654f32a828ab8fe4147412f1197cfcc6f;p=demos%2Fkafka%2Ftraining README.sh für die Übung `rest-producer--headers` umgestellt --- diff --git a/README.sh b/README.sh index 3dc3476..9b15a70 100755 --- a/README.sh +++ b/README.sh @@ -29,15 +29,10 @@ docker-compose up -d producer while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done -# tag::success[] -echo -n 'Hallo Welt!' | http -v :8080/foo -# end::success[] - -# tag::failure[] -dd if=/dev/zero bs=1024 count=1024 | http -v :8080/bar -# end::failure[] - -# tag::timeout[] -docker-compose stop kafka-1 kafka-2 kafka-3 -echo -n 'Hallo again...' | http -v --timeout 30 :8080/foo -# end::timeout[] +# tag::http[] +echo -n bar | http -v :8080/foo +echo -n foo | http -v :8080/bar X-id:666 +# end::http[] +# tag::kafkacat[] +docker-compose exec cli kafkacat -b kafka:9092 -t test -f "%p|%o|%k=%s|%h\n" -e +# end::kafkacat[]