Verbesserungen an Setup und Vorführ-Srkipt gemerged
authorKai Moritz <kai@juplo.de>
Sun, 21 Aug 2022 15:56:43 +0000 (17:56 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 28 Aug 2022 15:50:24 +0000 (17:50 +0200)
* Merge branch 'sumup-adder--ohne--stored-offsets' into sumup-adder.
* Nur die Verbesserungen an Compose-Setup und Vorführ-Skript übernommen.
* Debug-Meldungen für den `KafkaConsumer` deaktivert.

1  2 
README.sh
docker-compose.yml

diff --cc README.sh
+++ b/README.sh
@@@ -16,8 -18,8 +18,8 @@@ if [
    "$1" = "build"
  ]]
  then
-   docker-compose rm -svf adder
+   docker-compose rm -svf adder-1 adder-2
 -  mvn -D skipTests clean install || exit
 +  mvn clean install || exit
  else
    echo "Using image existing images:"
    docker image ls $IMAGE
@@@ -112,18 -112,42 +112,40 @@@ services
      environment:
        server.port: 8080
        sumup.requests.bootstrap-server: kafka:9092
-       sumup.requests.client-id: requests
+       sumup.requests.client-id: requests-1
  
-   adder:
-     image: juplo/sumup-adder:1.0-SNAPSHOT
+   requests-2:
+     image: juplo/sumup-requests:1.0-SNAPSHOT
      ports:
        - 8082:8080
 -      logging.level.org.apache.kafka.clients.consumer: DEBUG
+     environment:
+       server.port: 8080
+       sumup.requests.bootstrap-server: kafka:9092
+       sumup.requests.client-id: requests-2
+   adder-1:
+     image: juplo/sumup-adder:1.0-SNAPSHOT
+     ports:
+       - 8091:8080
+     environment:
+       server.port: 8080
+       sumup.adder.bootstrap-server: kafka:9092
+       sumup.adder.client-id: adder-1
+       sumup.adder.commit-interval: 3s
+       spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017
+       spring.data.mongodb.database: juplo
+   adder-2:
+     image: juplo/sumup-adder:1.0-SNAPSHOT
+     ports:
+       - 8092:8080
      environment:
        server.port: 8080
        sumup.adder.bootstrap-server: kafka:9092
-       sumup.adder.client-id: adder
+       sumup.adder.client-id: adder-2
+       sumup.adder.commit-interval: 3s
        spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017
        spring.data.mongodb.database: juplo
 -      logging.level.org.apache.kafka.clients.consumer: DEBUG
  
    peter:
      image: juplo/toolbox