[submodule "splitter"]
path = splitter
url = ./
+[submodule "popular"]
+ path = popular
+ url = ./
+ branch = popular
COUNTER=juplo/wordcount--counter:1.3.1
TOP10=juplo/wordcount--top10:1.2.1
QUERY=juplo/wordcount--query:2.0.1
+POPULAR=juplo/wordcount--popular:1.0.0
if [ "$1" = "cleanup" ]
then
docker image rm $COUNTER
docker image rm $TOP10
docker image rm $QUERY
+ docker image rm $POPULAR
exit
fi
$(docker image ls -q $COUNTER) == "" ||
$(docker image ls -q $TOP10) == "" ||
$(docker image ls -q $QUERY) == "" ||
+ $(docker image ls -q $POPULAR) == "" ||
"$1" = "build"
]]
then
mvn clean package || exit
- docker compose rm -svf recorder users splitter counter top10 query
+ docker compose rm -svf recorder users splitter counter top10 query popular
( cd fortune; ./README.sh $FORTUNE; )
mvn -f recorder/pom.xml docker:build
mvn -f users/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
+ mvn -f popular/pom.xml docker:build
else
echo "Using existing images:"
docker image ls $FORTUNE
docker image ls $COUNTER
docker image ls $TOP10
docker image ls $QUERY
+ docker image ls $POPULAR
fi
-Subproject commit 58681eb5c2ea655385c8209b07330e4ef0ab2c49
+Subproject commit f9156ed2e1f43b64d39cc39a13d12ca8c0d24219
depends_on:
- kafka
+ popular:
+ image: juplo/wordcount--popular:1.0.0
+ labels:
+ - "traefik.enable=true"
+ - "traefik.http.routers.popular.rule=Host(`popular.localhost`)"
+ - "traefik.http.routers.popular.entrypoints=web"
+ environment:
+ juplo.wordcount.popular.bootstrap-server: kafka:9092
+ depends_on:
+ - kafka
+
bart:
image: juplo/wordcount--fortune:1.0.1
kafka-topics --bootstrap-server kafka:9092 --describe --topic words
kafka-topics --bootstrap-server kafka:9092 --describe --topic countings
kafka-topics --bootstrap-server kafka:9092 --describe --topic top10
+ kafka-topics --bootstrap-server kafka:9092 --describe --topic popular
else
kafka-topics --bootstrap-server kafka:9092 \
--delete \
--delete \
--if-exists \
--topic top10
+ kafka-topics --bootstrap-server kafka:9092 \
+ --delete \
+ --if-exists \
+ --topic popular
kafka-topics --bootstrap-server kafka:9092 \
--create \
--topic users \
--config min.insync.replicas=1 \
&& echo Das Topic \'top10\' wurde erfolgreich angelegt: \
&& kafka-topics --bootstrap-server kafka:9092 --describe --topic top10 \
+ && kafka-topics --bootstrap-server kafka:9092 \
+ --create \
+ --topic popular \
+ --partitions 3 \
+ --replication-factor 1 \
+ --config min.insync.replicas=1 \
+ && echo Das Topic \'popular\' wurde erfolgreich angelegt: \
+ && kafka-topics --bootstrap-server kafka:9092 --describe --topic popular \
&& date > INITIALIZED
fi
stop_grace_period: 0s
<module>counter</module>
<module>top10</module>
<module>query</module>
+ <module>popular</module>
</modules>
</project>
--- /dev/null
+Subproject commit e88db15eafe64ac083d066be29ad94058930bb5d