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) == "" ||
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