projects
/
demos
/
kafka
/
training
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP
[demos/kafka/training]
/
README.sh
diff --git
a/README.sh
b/README.sh
index
25b8f62
..
3da5bbe
100755
(executable)
--- a/
README.sh
+++ b/
README.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-IMAGE=juplo/sumup-gateway:1.0-SNAPSHOT
+IMAGE=juplo/sumup-gateway
--springified
:1.0-SNAPSHOT
if [ "$1" = "cleanup" ]
then
if [ "$1" = "cleanup" ]
then
@@
-16,7
+16,7
@@
if [[
"$1" = "build"
]]
then
"$1" = "build"
]]
then
- docker-compose rm -svf gateway
+ docker-compose rm -svf gateway
gateway-0 gateway-1
mvn clean install || exit
else
echo "Using image existing images:"
mvn clean install || exit
else
echo "Using image existing images:"
@@
-26,15
+26,17
@@
fi
echo "Waiting for the Kafka-Cluster to become ready..."
docker-compose exec cli cub kafka-ready -b kafka:9092 3 60 > /dev/null 2>&1 || exit 1
docker-compose up setup
echo "Waiting for the Kafka-Cluster to become ready..."
docker-compose exec cli cub kafka-ready -b kafka:9092 3 60 > /dev/null 2>&1 || exit 1
docker-compose up setup
-docker-compose up -d gateway
+docker-compose up -d gateway
gateway-0 gateway-1
while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for gateway..."; sleep 1; done
docker-compose up -d consumer
while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for gateway..."; sleep 1; done
docker-compose up -d consumer
-echo foo | http -v :8080/bar
-echo 66 | http -v :8080/foo
+echo foo | http -v :8082/peter
+echo bar | http -v :8082/klaus
+
+echo FOO | http -v :8080/peter
+echo BAR | http -v :8081/klaus
-docker-compose logs gateway
docker-compose stop consumer
docker-compose logs consumer
docker-compose stop consumer
docker-compose logs consumer