From: Kai Moritz Date: Thu, 13 Jun 2024 09:04:25 +0000 (+0200) Subject: `README.sh` auf `docker compose` umgestellt X-Git-Tag: config/flawed-setup--zookeeper--BRANCH-ENDE~8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=d5325b3a1f88cf6a4ca3add72196e8b952891511;p=demos%2Fkafka%2Ftraining `README.sh` auf `docker compose` umgestellt --- diff --git a/README.sh b/README.sh index 008213c..ff0b58b 100755 --- a/README.sh +++ b/README.sh @@ -4,13 +4,13 @@ IMAGE=juplo/simple-consumer: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 consumer +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 consumer if [[ $(docker image ls -q $IMAGE) == "" || @@ -23,22 +23,22 @@ 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 ps -docker-compose -f docker/docker-compose.yml up -d producer -docker-compose -f docker/docker-compose.yml up -d consumer +docker compose -f docker/docker-compose.yml up -d producer +docker compose -f docker/docker-compose.yml up -d consumer sleep 5 -docker-compose -f docker/docker-compose.yml stop consumer +docker compose -f docker/docker-compose.yml stop consumer -docker-compose -f docker/docker-compose.yml start consumer +docker compose -f docker/docker-compose.yml start consumer sleep 5 -docker-compose -f docker/docker-compose.yml stop producer consumer -docker-compose -f docker/docker-compose.yml logs consumer +docker compose -f docker/docker-compose.yml stop producer consumer +docker compose -f docker/docker-compose.yml logs consumer