From a6ae559dee60bf66ef91298098a9ed73e7fb3be3 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/docker-compose.yml | 26 -------------------------- 2 files changed, 1 insertion(+), 30 deletions(-) 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' -- 2.20.1