projects
/
demos
/
kafka
/
training
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version des Rest-Producers, der direkt Requests für den Sumup-Adder sendet
[demos/kafka/training]
/
README.sh
diff --git
a/README.sh
b/README.sh
index
2649b38
..
52b5f20
100755
(executable)
--- a/
README.sh
+++ b/
README.sh
@@
-1,6
+1,6
@@
#!/bin/bash
#!/bin/bash
-IMAGE=juplo/rest-producer:1.0-SNAPSHOT
+IMAGE=juplo/rest-producer
-json
:1.0-SNAPSHOT
if [ "$1" = "cleanup" ]
then
if [ "$1" = "cleanup" ]
then
@@
-16,6
+16,7
@@
if [[
"$1" = "build"
]]
then
"$1" = "build"
]]
then
+ docker-compose rm -svf producer
mvn clean install || exit
else
echo "Using image existing images:"
mvn clean install || exit
else
echo "Using image existing images:"
@@
-29,9
+30,11
@@
docker-compose up -d producer
while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done
while ! [[ $(http 0:8080/actuator/health 2> /dev/null) =~ "UP" ]]; do echo "Waiting for producer..."; sleep 1; done
-# tag::http[]
-echo -n bar | http -v :8080/foo
-echo -n foo | http -v :8080/bar X-id:666
+docker-compose up -d peter klaus
+
+sleep 10
+docker-compose stop peter klaus
+
# end::http[]
# tag::kafkacat[]
docker-compose exec cli kafkacat -b kafka:9092 -t test -f "%p|%o|%k=%s|%h\n" -e
# end::http[]
# tag::kafkacat[]
docker-compose exec cli kafkacat -b kafka:9092 -t test -f "%p|%o|%k=%s|%h\n" -e