projects
/
demos
/
kafka
/
training
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EndlessProducer in RestProducer umgearbeitet
[demos/kafka/training]
/
README.sh
diff --git
a/README.sh
b/README.sh
index
0544297
..
8b568c9
100755
(executable)
--- a/
README.sh
+++ b/
README.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-IMAGE=juplo/
endless
-producer:1.0-SNAPSHOT
+IMAGE=juplo/
rest
-producer:1.0-SNAPSHOT
if [ "$1" = "cleanup" ]
then
if [ "$1" = "cleanup" ]
then
@@
-23,9
+23,77
@@
else
fi
echo "Waiting for the Kafka-Cluster to become ready..."
fi
echo "Waiting for the Kafka-Cluster to become ready..."
-docker-compose exec
kafka
cub kafka-ready -b kafka:9092 1 60 > /dev/null 2>&1 || exit 1
+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 setup
-docker-compose up -d producer
-sleep 5
-docker-compose stop producer
+
+docker-compose up -d
+
+sleep 15
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+
+http post :8081/stop
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+
+http post :8081/start
+
+sleep 1
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+sleep 1
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+sleep 1
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+sleep 1
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+sleep 1
+http :8081/status
+http :8082/status
+http :8083/status
+http :8084/status
+http :8085/status
+http :8000/seen
+
+http post :8081/stop
+http :8081/status
+http post :8082/stop
+http :8082/status
+http post :8083/stop
+http :8083/status
+http post :8084/stop
+http :8084/status
+http post :8085/stop
+http :8085/status
+
+http :8000/seen
+http post :8000/stop
+
docker-compose logs producer
docker-compose logs producer