From: Kai Moritz Date: Wed, 23 Nov 2022 03:04:06 +0000 (+0100) Subject: Verbesserungen & Korrekturen aus spring-consumer übernommen X-Git-Tag: spring-consumer--json---lvm-2-tage--easy-path X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=37b47d423e4d0c88e00fc2787f2ac88fac4c17ec;p=demos%2Fkafka%2Ftraining Verbesserungen & Korrekturen aus spring-consumer übernommen --- 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