From: Kai Moritz Date: Fri, 11 Nov 2022 16:21:23 +0000 (+0100) Subject: Projekt in `supersimple-consumer` umbenannt X-Git-Tag: supersimple-consumer---lvm-2-tage--easy-path~5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2ac1e5fcecbee7173fbd9f50e3373c6d0b25a478;p=demos%2Fkafka%2Ftraining Projekt in `supersimple-consumer` umbenannt --- diff --git a/README.sh b/README.sh index 69d05ee..e96245a 100755 --- a/README.sh +++ b/README.sh @@ -1,6 +1,6 @@ #!/bin/bash -IMAGE=juplo/supersimple:1.0-SNAPSHOT +IMAGE=juplo/supersimple-consumer:1.0-SNAPSHOT if [ "$1" = "cleanup" ] then @@ -9,7 +9,7 @@ then exit fi -docker-compose rm -svf supersimple +docker-compose rm -svf consumer docker-compose up -d zookeeper kafka-1 kafka-2 kafka-3 cli if [[ @@ -17,7 +17,7 @@ if [[ "$1" = "build" ]] then - docker-compose rm -svf supersimple + docker-compose rm -svf consumer mvn clean install || exit else echo "Using image existing images:" @@ -27,7 +27,7 @@ fi echo "Waiting for the Kafka-Cluster to become ready..." docker-compose exec cli cub kafka-ready -b kafka:9092 1 60 > /dev/null 2>&1 || exit 1 docker-compose up setup -docker-compose up -d gateway requests-1 requests-2 supersimple +docker-compose up -d gateway requests-1 requests-2 consumer while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for gateway..."; sleep 1; done while ! [[ $(http 0:8081/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for requests-1..."; sleep 1; done @@ -37,4 +37,4 @@ echo 6 | http -v :8080/peter sleep 10 -docker-compose logs supersimple +docker-compose logs consumer diff --git a/docker-compose.yml b/docker-compose.yml index 69e67a2..de4905d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -103,13 +103,13 @@ services: sumup.requests.bootstrap-server: kafka:9092 sumup.requests.client-id: requests-2 - supersimple: - image: juplo/supersimple:1.0-SNAPSHOT + consumer: + image: juplo/supersimple-consumer:1.0-SNAPSHOT ports: - 8090:8080 environment: server.port: 8080 spring.kafka.bootstrap-servers: kafka:9092 spring.kafka.producer.bootstrap-servers: kafka:9092 - spring.kafak.client-id: supersimple + spring.kafak.client-id: consumer logging.level.org.apache.kafka.clients.consumer: INFO diff --git a/pom.xml b/pom.xml index 9fa4884..d564d7b 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ de.juplo.kafka - supersimple + supersimple-consumer 1.0-SNAPSHOT Supersimple Consumer-Group Most minimal Consumer-Group ever!