From 20d73f280387375790592988957b9c11b8d57eed Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 11 Nov 2024 23:15:01 +0100 Subject: [PATCH] =?utf8?q?`README.sh`=20aus=20Vorlager=20zur=20=C3=9Cbung?= =?utf8?q?=20f=C3=BCr=20`delivery.timeout.ms`=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100755 README.sh diff --git a/README.sh b/README.sh deleted file mode 100755 index 918e83a..0000000 --- a/README.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -IMAGE=juplo/spring-producer:1.0-SNAPSHOT - -if [ "$1" = "cleanup" ] -then - 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 setup producer - -if [[ - $(docker image ls -q $IMAGE) == "" || - "$1" = "build" -]] -then - mvn clean install || exit -else - echo "Using image existing images:" - 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 -d producer -sleep 5 - -docker compose -f docker/docker-compose.yml pause kafka-1 kafka-3 -sleep 20 -docker compose -f docker/docker-compose.yml unpause kafka-1 kafka-3 -sleep 3 - -docker compose -f docker/docker-compose.yml stop producer - -echo -echo "Empfangen:" -docker compose -f docker/docker-compose.yml exec cli kafkacat -b kafka:9092 -t test -e -q -J - -docker compose -f docker/docker-compose.yml logs producer | grep ERROR -- 2.20.1