From d742222a67b0aa0355e7dbe30f88ddf2c2b88b26 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 11 Jun 2023 09:40:54 +0200 Subject: [PATCH] Docker-Setup in das Unterverzeichnis `docker` verschoben --- README.sh | 20 +++++++++---------- .../docker-compose.yml | 0 2 files changed, 10 insertions(+), 10 deletions(-) rename docker-compose.yml => docker/docker-compose.yml (100%) diff --git a/README.sh b/README.sh index 2c57e05..96d6d8e 100755 --- a/README.sh +++ b/README.sh @@ -4,13 +4,13 @@ IMAGE=juplo/simple-producer:1.0-SNAPSHOT if [ "$1" = "cleanup" ] then - docker-compose down -v --remove-orphans + docker-compose -f docker/docker-compose.yml down -v mvn clean exit fi -docker-compose up -d kafka-1 kafka-2 kafka-3 cli -docker-compose rm -svf producer +docker-compose -f docker/docker-compose.yml up -d kafka-1 kafka-2 kafka-3 cli +docker-compose -f docker/docker-compose.yml rm -svf producer if [[ $(docker image ls -q $IMAGE) == "" || @@ -23,13 +23,13 @@ else docker image ls $IMAGE fi -docker-compose up setup -docker-compose ps -docker-compose up -d producer +docker-compose -f docker/docker-compose.yml up setup +docker-compose -f docker/docker-compose.yml ps +docker-compose -f docker/docker-compose.yml up -d producer sleep 5 -docker-compose exec cli kafkacat -b kafka:9092 -t test -c 20 -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n' +docker-compose -f docker/docker-compose.yml exec cli kafkacat -b kafka:9092 -t test -c 20 -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n' -docker-compose stop producer -docker-compose exec cli kafkacat -b kafka:9092 -t test -e -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n' -docker-compose logs producer +docker-compose -f docker/docker-compose.yml stop producer +docker-compose -f docker/docker-compose.yml exec cli kafkacat -b kafka:9092 -t test -e -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n' +docker-compose -f docker/docker-compose.yml logs producer 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