From 37b47d423e4d0c88e00fc2787f2ac88fac4c17ec Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 23 Nov 2022 04:04:06 +0100 Subject: [PATCH] =?utf8?q?Verbesserungen=20&=20Korrekturen=20aus=20spring-?= =?utf8?q?consumer=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.sh | 6 +++--- docker-compose.yml | 4 ++++ pom.xml | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.sh b/README.sh index c2ea029..e61188f 100755 --- a/README.sh +++ b/README.sh @@ -4,19 +4,19 @@ IMAGE=juplo/spring-consumer-json:1.0-SNAPSHOT if [ "$1" = "cleanup" ] then - docker-compose down -v + docker-compose down -v --remove-orphans mvn clean exit fi -docker-compose up -d kafka-0 kafka-1 kafka-2 kafka-3 cli +docker-compose up -d kafka-1 kafka-2 kafka-3 cli +docker-compose rm -svf consumer-1 consumer-2 if [[ $(docker image ls -q $IMAGE) == "" || "$1" = "build" ]] then - docker-compose rm -svf consumer-1 consumer-2 mvn clean install || exit else echo "Using image existing images:" diff --git a/docker-compose.yml b/docker-compose.yml index f6dbef4..b0260ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -101,6 +101,10 @@ services: cli: image: juplo/toolbox command: sleep infinity + depends_on: + - kafka-1 + - kafka-2 + - kafka-3 producer: image: juplo/rest-producer-json:1.0-SNAPSHOT diff --git a/pom.xml b/pom.xml index ebf6eb1..1165685 100644 --- a/pom.xml +++ b/pom.xml @@ -13,9 +13,9 @@ de.juplo.kafka spring-consumer-json - 1.0-SNAPSHOT Spring Consumer Super Simple Consumer-Group, that is implemented as Spring-Boot application and configured by Spring Kafka + 1.0-SNAPSHOT 11 @@ -61,6 +61,10 @@ + + pl.project13.maven + git-commit-id-plugin + org.springframework.boot spring-boot-maven-plugin -- 2.20.1