path = fortune
url = ./
branch = fortune
+[submodule "splitter"]
+ path = splitter
+ url = ./
FORTUNE=juplo/wordcount--fortune:1.0.0
RECORDER=juplo/wordcount--recorder:1.0.1
USERS=juplo/wordcount--users:1.0.4
-COUNTER=juplo/wordcount--counter:1.0.1
+SPLITTER=juplo/wordcount--splitter:1.0.0
+COUNTER=juplo/wordcount--counter:1.1.0
TOP10=juplo/wordcount--top10:1.0.1
QUERY=juplo/wordcount--query:1.0.4
docker image rm $FORTUNE
docker image rm $RECORDER
docker image rm $USERS
+ docker image rm $SPLITTER
docker image rm $COUNTER
docker image rm $TOP10
docker image rm $QUERY
$(docker image ls -q $FORTUNE) == "" ||
$(docker image ls -q $RECORDER) == "" ||
$(docker image ls -q $USERS) == "" ||
+ $(docker image ls -q $SPLITTER) == "" ||
$(docker image ls -q $COUNTER) == "" ||
$(docker image ls -q $TOP10) == "" ||
$(docker image ls -q $QUERY) == "" ||
]]
then
mvn clean package || exit
- docker-compose rm -svf recorder users counter top10 query
+ docker-compose rm -svf recorder users splitter counter top10 query
( cd fortune; ./README.sh $FORTUNE; )
mvn -f recorder/pom.xml docker:build
mvn -f users/pom.xml docker:build
+ mvn -f splitter/pom.xml docker:build
mvn -f counter/pom.xml docker:build
mvn -f top10/pom.xml docker:build
mvn -f query/pom.xml docker:build
docker image ls $FORTUNE
docker image ls $RECORDER
docker image ls $USERS
+ docker image ls $SPLITTER
docker image ls $COUNTER
docker image ls $TOP10
docker image ls $QUERY
-Subproject commit b1623c2b645c614424ceec3bc71008c900d82115
+Subproject commit fe049944648d9675ffe66b586b6bf860fbac696f
depends_on:
- kafka
+ splitter:
+ image: juplo/wordcount--splitter:1.0.0
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.splitter.rule=Host(`splitter.localhost`)"
+ - "traefik.http.routers.splitter.entrypoints=web"
+ environment:
+ juplo.wordcount.splitter.bootstrap-server: kafka:9092
+ depends_on:
+ - kafka
+
counter:
- image: juplo/wordcount--counter:1.0.1
+ image: juplo/wordcount--counter:1.1.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.counter.rule=Host(`counter.localhost`)"
image: juplo/toolbox
command: bash -c "
cub kafka-ready -b kafka:9092 1 60 ;
- kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic recordings ;
- kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic users ;
- kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic countings ;
- kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --topic top10 ;
+ kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic recordings ;
+ kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic users ;
+ kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic words ;
+ kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic countings ;
+ kafka-topics --bootstrap-server kafka:9092 --create --partitions 10 --if-not-exists --topic top10 ;
sleep infinity"
akhq:
<groupId>de.juplo.kafka.wordcount</groupId>
<artifactId>docker</artifactId>
<packaging>pom</packaging>
- <version>1.0.1</version>
+ <version>1.0.2</version>
<name>Docker-Compose Setup</name>
<description>Docker-Compose Setup for the multiuser-wordcount example</description>
<modules>
<module>recorder</module>
<module>users</module>
+ <module>splitter</module>
<module>counter</module>
<module>top10</module>
<module>query</module>
--- /dev/null
+Subproject commit 3bc3ef7ceb76e7643e1e373293cfdc78f870838a