From: Kai Moritz Date: Fri, 10 Nov 2023 10:26:13 +0000 (+0100) Subject: `README.sh` an Übung angepasst X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=32d9985a856a8dc6a7d2e4056dcc5b8d4670a8a5;p=demos%2Fkafka%2Ftraining `README.sh` an Übung angepasst --- diff --git a/README.sh b/README.sh index fa8a4c7..f844991 100755 --- a/README.sh +++ b/README.sh @@ -15,24 +15,9 @@ docker build -t juplo/cruise-control . docker-compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 docker-compose -f docker/docker-compose.yml ps -docker-compose -f docker/docker-compose.yml up -t0 -d cli -sleep 1 -docker-compose -f docker/docker-compose.yml logs setup +docker-compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 +docker-compose -f docker/docker-compose.yml up -d producer consumer-1 consumer-2 +docker-compose -f docker/docker-compose.yml up -d cruise-control -echo -echo "Hilfe-Ausgabe von kafkacat" -echo -docker-compose -f docker/docker-compose.yml exec -T cli kafkacat -h -echo -echo "Nachrichten schreiben mit kafkacat" -echo -docker-compose -f docker/docker-compose.yml exec -T cli kafkacat -P -b kafka:9092 -t test << EOF -Hallo Welt! -Nachricht #1 -Nachricht #2 -Nachricht #3 -EOF -echo -echo "Nachrichten lesen mit kafkacat" -echo -docker-compose -f docker/docker-compose.yml exec cli kafkacat -C -b kafka:9092 -t test -o beginning -e +sleep 5 +docker-compose -f docker/docker-compose.yml logs cruise-control