From ee5256f37d6c68e2ffb49aa7512b4e583cb12d36 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 11 Jun 2023 14:46:07 +0200 Subject: [PATCH] Docker-Setup in das Unterverzeichnis `docker` verschoben --- README.sh | 18 +++++++++--------- .../docker-compose.yml | 0 2 files changed, 9 insertions(+), 9 deletions(-) rename docker-compose.yml => docker/docker-compose.yml (100%) diff --git a/README.sh b/README.sh index c839f35..626d366 100755 --- a/README.sh +++ b/README.sh @@ -2,27 +2,27 @@ if [ "$1" = "cleanup" ] then - docker-compose down -t0 -v --remove-orphans + docker-compose -f docker/docker-compose.yml down -t0 -v --remove-orphans exit fi -docker-compose up -d kafka-1 kafka-2 kafka-3 -docker-compose ps +docker-compose -f docker/docker-compose.yml up -d kafka-1 kafka-2 kafka-3 +docker-compose -f docker/docker-compose.yml ps echo "Waiting for the Kafka-Cluster to become ready..." -docker-compose run --rm cli cub kafka-ready -b kafka:9092 3 60 > /dev/null 2>&1 || exit 1 +docker-compose -f docker/docker-compose.yml run --rm cli cub kafka-ready -b kafka:9092 3 60 > /dev/null 2>&1 || exit 1 -docker-compose up -t0 -d cli +docker-compose -f docker/docker-compose.yml up -t0 -d cli sleep 1 -docker-compose logs setup +docker-compose -f docker/docker-compose.yml logs setup echo echo "Hilfe-Ausgabe von kafkacat" echo -docker-compose 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 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 @@ -31,4 +31,4 @@ EOF echo echo "Nachrichten lesen mit kafkacat" echo -docker-compose 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-compose.yml b/docker/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to docker/docker-compose.yml -- 2.20.1