Verbesserungen & Korrekturen aus spring-consumer übernommen spring-consumer--json---lvm-2-tage--easy-path
authorKai Moritz <kai@juplo.de>
Wed, 23 Nov 2022 03:04:06 +0000 (04:04 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 23 Nov 2022 03:04:06 +0000 (04:04 +0100)
README.sh
docker-compose.yml
pom.xml

index c2ea029..e61188f 100755 (executable)
--- 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:"
index f6dbef4..b0260ab 100644 (file)
@@ -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 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -13,9 +13,9 @@
 
   <groupId>de.juplo.kafka</groupId>
   <artifactId>spring-consumer-json</artifactId>
-  <version>1.0-SNAPSHOT</version>
   <name>Spring Consumer</name>
   <description>Super Simple Consumer-Group, that is implemented as Spring-Boot application and configured by Spring Kafka</description>
+  <version>1.0-SNAPSHOT</version>
 
   <properties>
     <java.version>11</java.version>
 
   <build>
     <plugins>
+      <plugin>
+        <groupId>pl.project13.maven</groupId>
+        <artifactId>git-commit-id-plugin</artifactId>
+      </plugin>
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>