From 224e3e78fbb490b10398db42ad7060e5e3761cb5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 25 Sep 2024 14:26:43 +0200 Subject: [PATCH] =?utf8?q?Schreibweise=20des=20CLI-Kommandos=20f=C3=BCr=20?= =?utf8?q?Docker-Compose=20korrigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.sh b/README.sh index 4bd808d..97ca7cc 100755 --- a/README.sh +++ b/README.sh @@ -4,13 +4,13 @@ IMAGE=juplo/simple-producer:1.0-SNAPSHOT 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 mvn clean exit fi -docker-compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3 -docker-compose -f docker/docker-compose.yml rm -svf producer +docker compose -f docker/docker-compose.yml up -d --remove-orphans kafka-1 kafka-2 kafka-3 +docker compose -f docker/docker-compose.yml rm -svf producer if [[ $(docker image ls -q $IMAGE) == "" || @@ -23,18 +23,18 @@ else docker image ls $IMAGE fi -docker-compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 +docker compose -f docker/docker-compose.yml up --remove-orphans setup || exit 1 -docker-compose -f docker/docker-compose.yml up -t0 -d cli +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 logs setup -docker-compose -f docker/docker-compose.yml ps -docker-compose -f docker/docker-compose.yml up -d producer +docker compose -f docker/docker-compose.yml ps +docker compose -f docker/docker-compose.yml up -d producer sleep 5 -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 -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 -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 +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 -- 2.20.1