From: Kai Moritz Date: Mon, 30 Jan 2023 19:15:38 +0000 (+0100) Subject: Setup und Beispiel in `README.sh` vereinfacht X-Git-Tag: spring/rest-producer--json---2023-06-signal~1 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=be1ffd5e2ad8d0e6c443ec4b85cfb1f08d458721;p=demos%2Fkafka%2Ftraining Setup und Beispiel in `README.sh` vereinfacht --- diff --git a/README.sh b/README.sh index af458b9..427eca3 100755 --- a/README.sh +++ b/README.sh @@ -34,10 +34,7 @@ docker-compose -f docker/docker-compose.yml logs setup docker-compose -f docker/docker-compose.yml up -d producer while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done -docker-compose -f docker/docker-compose.yml up -d peter klaus - -sleep 10 -docker-compose -f docker/docker-compose.yml stop 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/docker-compose.yml b/docker/docker-compose.yml index e2b3c43..b654d88 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -108,29 +108,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/toolbox - command: kafkacat -C -b kafka:9092 -t test -o 0 -f'p=%p|o=%o|k=%k|v=%s\n'