Korrekturen & Verbesserungen von simple-producer übernommen supersimple-producer---lvm-2-tage--easy-path
authorKai Moritz <kai@juplo.de>
Tue, 22 Nov 2022 21:57:12 +0000 (22:57 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 22 Nov 2022 21:57:12 +0000 (22:57 +0100)
Dockerfile
README.sh
docker-compose.yml
pom.xml

index 9f3eac8..16ee25e 100644 (file)
@@ -1,5 +1,5 @@
 FROM openjdk:11-jre
 VOLUME /tmp
 COPY target/*.jar /opt/app.jar
-ENTRYPOINT [ "java", "-jar", "/opt/app.jar", "kafka:9092", "test" ]
-CMD [ "DCKR" ]
+ENTRYPOINT [ "java", "-jar", "/opt/app.jar" ]
+CMD []
index 270dfa8..4a98289 100755 (executable)
--- a/README.sh
+++ b/README.sh
@@ -4,7 +4,7 @@ IMAGE=juplo/supersimple-producer:1.0-SNAPSHOT
 
 if [ "$1" = "cleanup" ]
 then
-  docker-compose down -v
+  docker-compose down -v --remove-orphans
   mvn clean
   exit
 fi
@@ -24,6 +24,7 @@ else
 fi
 
 docker-compose up setup
+docker-compose ps
 docker-compose up producer
 
-docker-compose exec cli kafkacat -b kafka:9092 -t test -q -e -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n'
+docker-compose exec cli kafkacat -b kafka:9092 -t test -e -f'topic=%t\tpartition=%p\toffset=%o\tkey=%k\tvalue=%s\n'
index 34bb5f3..1fab4ab 100644 (file)
@@ -84,6 +84,7 @@ services:
     depends_on:
       - kafka-0
 
+
   setup:
     image: juplo/toolbox
     command: >
@@ -100,6 +101,10 @@ services:
   cli:
     image: juplo/toolbox
     command: sleep infinity
+    depends_on:
+      - kafka-1
+      - kafka-2
+      - kafka-3
 
   producer:
     image: juplo/supersimple-producer:1.0-SNAPSHOT
diff --git a/pom.xml b/pom.xml
index 058aa14..ccab861 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -13,9 +13,9 @@
 
   <groupId>de.juplo.kafka</groupId>
   <artifactId>supersimple-producer</artifactId>
-  <version>1.0-SNAPSHOT</version>
   <name>Super Simple Producer</name>
   <description>Most minimal Kafka Producer ever!</description>
+  <version>1.0-SNAPSHOT</version>
 
   <properties>
     <java.version>11</java.version>