From: Kai Moritz Date: Mon, 30 Jan 2023 19:15:38 +0000 (+0100) Subject: Setup und Beispiel in `README.sh` vereinfacht X-Git-Tag: rest-producer--json~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=9eed7c8bacb542ddee9ec2a732c315a92e17a928;p=demos%2Fkafka%2Ftraining Setup und Beispiel in `README.sh` vereinfacht --- diff --git a/README.sh b/README.sh index 0e8d4d3..8451679 100755 --- a/README.sh +++ b/README.sh @@ -29,10 +29,7 @@ docker-compose up -d producer while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done -docker-compose up -d peter klaus - -sleep 10 -docker-compose kill -s9 peter klaus +echo -n 3 | http -v :8080/foo; # tag::kafkacat[] kafkacat -b :9092 -t test -o 0 -e -f 'p=%p|o=%o|k=%k|h=%h|v=%s\n' diff --git a/docker-compose.yml b/docker-compose.yml index a6905a5..263f569 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -115,29 +115,3 @@ services: producer.bootstrap-server: kafka:9092 producer.client-id: producer producer.topic: test - - peter: - image: juplo/toolbox - command: > - bash -c " - while [[ true ]]; - do - echo 777 | http -v producer:8080/peter; - sleep 1; - done - " - - klaus: - image: juplo/toolbox - command: > - bash -c " - while [[ true ]]; - do - echo 666 | http -v producer:8080/klaus; - sleep 1; - done - " - - consumer: - image: juplo/simple-consumer:1.0-SNAPSHOT - command: kafka:9092 test my-group consumer