From 9eed7c8bacb542ddee9ec2a732c315a92e17a928 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 30 Jan 2023 20:15:38 +0100 Subject: [PATCH] Setup und Beispiel in `README.sh` vereinfacht --- README.sh | 5 +---- docker-compose.yml | 26 -------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) 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 -- 2.20.1