Setup und Beispiel in `README.sh` vereinfacht
authorKai Moritz <kai@juplo.de>
Mon, 30 Jan 2023 19:15:38 +0000 (20:15 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 31 Jan 2023 16:36:00 +0000 (17:36 +0100)
README.sh
docker-compose.yml

index 0e8d4d3..8451679 100755 (executable)
--- 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'
index a6905a5..263f569 100644 (file)
@@ -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