projects
/
demos
/
kafka
/
wordcount
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP
[demos/kafka/wordcount]
/
README.sh
diff --git
a/README.sh
b/README.sh
index
4b5f557
..
25e36da
100755
(executable)
--- a/
README.sh
+++ b/
README.sh
@@
-1,9
+1,10
@@
#!/bin/bash
FORTUNE=juplo/wordcount--fortune:1.0.0
#!/bin/bash
FORTUNE=juplo/wordcount--fortune:1.0.0
-RECORDER=juplo/wordcount--recorder:1.
0.1
+RECORDER=juplo/wordcount--recorder:1.
1.0
USERS=juplo/wordcount--users:1.0.4
USERS=juplo/wordcount--users:1.0.4
-COUNTER=juplo/wordcount--counter:1.0.1
+SPLITTER=juplo/wordcount--splitter:1.1.4
+COUNTER=juplo/wordcount--counter:1.2.4
TOP10=juplo/wordcount--top10:1.0.1
QUERY=juplo/wordcount--query:1.0.4
TOP10=juplo/wordcount--top10:1.0.1
QUERY=juplo/wordcount--query:1.0.4
@@
-13,6
+14,7
@@
then
docker image rm $FORTUNE
docker image rm $RECORDER
docker image rm $USERS
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 rm $COUNTER
docker image rm $TOP10
docker image rm $QUERY
@@
-23,6
+25,7
@@
if [[
$(docker image ls -q $FORTUNE) == "" ||
$(docker image ls -q $RECORDER) == "" ||
$(docker image ls -q $USERS) == "" ||
$(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) == "" ||
$(docker image ls -q $COUNTER) == "" ||
$(docker image ls -q $TOP10) == "" ||
$(docker image ls -q $QUERY) == "" ||
@@
-30,10
+33,11
@@
if [[
]]
then
mvn clean package || exit
]]
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
( 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
mvn -f counter/pom.xml docker:build
mvn -f top10/pom.xml docker:build
mvn -f query/pom.xml docker:build
@@
-42,6
+46,7
@@
else
docker image ls $FORTUNE
docker image ls $RECORDER
docker image ls $USERS
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
docker image ls $COUNTER
docker image ls $TOP10
docker image ls $QUERY
@@
-80,7
+85,7
@@
http -v query.localhost/bart
http -v query.localhost/nerd
http -v query.localhost/riddler
http -v query.localhost/nerd
http -v query.localhost/riddler
-docker-compose up -d --scale query=5 query
+
//
docker-compose up -d --scale query=5 query
http -v --follow query.localhost/bart
sleep 1
http -v --follow query.localhost/bart
http -v --follow query.localhost/bart
sleep 1
http -v --follow query.localhost/bart