From: Kai Moritz Date: Tue, 22 Nov 2022 18:57:55 +0000 (+0100) Subject: Dockerfile überarbeitet: Konfiguration nicht mehr hartkodiert X-Git-Tag: simple-producer---lvm-2-tage--easy-path~2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=0e80eb6e012efd62ec0a9f7313d1311a934dded1;p=demos%2Fkafka%2Ftraining Dockerfile überarbeitet: Konfiguration nicht mehr hartkodiert --- diff --git a/Dockerfile b/Dockerfile index 4213525..4e18a46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM openjdk:11-jre VOLUME /tmp COPY target/*.jar /opt/app.jar COPY target/libs /opt/libs -ENTRYPOINT [ "java", "-jar", "/opt/app.jar", "kafka:9092", "test" ] -CMD [ "DCKR" ] +ENTRYPOINT [ "java", "-jar", "/opt/app.jar" ] +CMD [ ":9092", "test", "DCKR" ] diff --git a/docker-compose.yml b/docker-compose.yml index a100750..3ff7c27 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -108,4 +108,4 @@ services: producer: image: juplo/simple-producer:1.0-SNAPSHOT - command: producer + command: kafka:9092 test producer