From: Kai Moritz Date: Wed, 24 Apr 2024 13:48:02 +0000 (+0200) Subject: Auf die Verwendung von dem Compose in Docker umgestellt X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=929e316a4c4dac7395ecd49d6c684e4e528a9a3d;p=demos%2Fkafka%2Ftraining Auf die Verwendung von dem Compose in Docker umgestellt --- diff --git a/README.sh b/README.sh index 63875a3..875cde1 100755 --- a/README.sh +++ b/README.sh @@ -2,23 +2,23 @@ if [ "$1" = "cleanup" ] then - docker-compose -f docker/docker-compose.yml down -t0 -v --remove-orphans + docker compose -f docker/docker-compose.yml down -t0 -v --remove-orphans exit fi -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 --remove-orphans setup || exit 1 +docker compose -f docker/docker-compose.yml ps sleep 1 -docker-compose -f docker/docker-compose.yml logs setup +docker compose -f docker/docker-compose.yml logs setup echo echo "Hilfe-Ausgabe von kafkacat" echo -docker-compose -f docker/docker-compose.yml exec -T cli kafkacat -h +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 +docker compose -f docker/docker-compose.yml exec -T cli kafkacat -P -b kafka:9092 -t test << EOF Hallo Welt! Nachricht #1 Nachricht #2 @@ -27,4 +27,4 @@ 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 +docker compose -f docker/docker-compose.yml exec cli kafkacat -C -b kafka:9092 -t test -o beginning -e diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index dd7c830..789e358 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.2' services: zookeeper: image: confluentinc/cp-zookeeper:7.5.1