From: Kai Moritz Date: Tue, 1 Nov 2022 10:04:40 +0000 (+0100) Subject: README.sh an geƤndertes Compose-Setup angepasst X-Git-Tag: spring-consumer--topicpartition-DEPRECATED~14 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fsimple-consumer--kraft-bitnami;p=demos%2Fkafka%2Ftraining README.sh an geƤndertes Compose-Setup angepasst --- 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