From 903c5f85e92ac1ae6d47c006ec13b162994eb329 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 22 Nov 2022 22:57:12 +0100 Subject: [PATCH] =?utf8?q?Korrekturen=20&=20Verbesserungen=20von=20simple-?= =?utf8?q?producer=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- README.sh | 5 +++-- docker-compose.yml | 5 +++++ pom.xml | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f3eac8..16ee25e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 [] diff --git a/README.sh b/README.sh index 270dfa8..4a98289 100755 --- 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' diff --git a/docker-compose.yml b/docker-compose.yml index 34bb5f3..1fab4ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 --- a/pom.xml +++ b/pom.xml @@ -13,9 +13,9 @@ de.juplo.kafka supersimple-producer - 1.0-SNAPSHOT Super Simple Producer Most minimal Kafka Producer ever! + 1.0-SNAPSHOT 11 -- 2.20.1