From de2811eefb4b7159045aefee8ca76a907df10249 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 1 Nov 2022 11:04:40 +0100 Subject: [PATCH] =?utf8?q?README.sh=20an=20ge=C3=A4ndertes=20Compose-Setup?= =?utf8?q?=20angepasst?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.sh b/README.sh index e803974..6030770 100755 --- a/README.sh +++ b/README.sh @@ -9,8 +9,8 @@ then exit fi -docker-compose up -d zookeeper kafka-1 kafka-2 kafka-3 cli -docker-compose rm -svf consumer +docker-compose up -d kafka-0 kafka-1 kafka-2 kafka-3 cli +docker-compose rm -svf consumer-1 if [[ $(docker image ls -q $IMAGE) == "" || @@ -26,18 +26,18 @@ fi echo "Waiting for the Kafka-Cluster to become ready..." docker-compose exec cli cub kafka-ready -b kafka:9092 1 60 > /dev/null 2>&1 || exit 1 docker-compose up setup -docker-compose up -d +docker-compose up -d producer consumer-1 sleep 5 -docker-compose restart consumer +docker-compose restart consumer-1 sleep 5 -docker-compose stop consumer producer -docker-compose logs consumer +docker-compose stop consumer-1 producer +docker-compose logs consumer-1 echo "Received messages for test/0" -docker-compose logs consumer | grep test/0 +docker-compose logs consumer-1 | grep test/0 echo "Received messages for test/1" -docker-compose logs consumer | grep test/1 +docker-compose logs consumer-1 | grep test/1 -- 2.20.1