X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=README.sh;h=6c3eba1e78671ecbb19394653b2561dcf728319e;hb=7f29a04ba764a92a25e82e2848a30ca284c9ff18;hp=2b528cef63421e1eb01df1132605bfee2de58333;hpb=8215014571f11cb3846340a222c99014defcd274;p=demos%2Fmicroservices diff --git a/README.sh b/README.sh index 2b528ce..6c3eba1 100755 --- a/README.sh +++ b/README.sh @@ -7,6 +7,8 @@ then exit fi +trap 'kill $(jobs -p)' EXIT + mvn package docker build -t trion/take-order-service:0 take-order @@ -18,3 +20,11 @@ while ! [[ $(zookeeper-shell zookeeper:2181 ls /brokers/ids 2> /dev/null) =~ 100 kafka-topics --zookeeper zookeeper:2181 --if-not-exists --create --replication-factor 1 --partitions 5 --topic orders docker-compose up -d take-order + +kafka-avro-console-consumer --bootstrap-server kafka:9092 --topic orders & +sleep 10 # TODO: Warum ist /health nicht erreichbar?!? +http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity=5 +http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity= +http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=234 quantity=-5 +http -v post 0:8091/orders Accept:*/* id=1 customerId=2 productId=-234 quantiyt=5 +http -v post 0:8091/orders Accept:*/* customerId=2 productId=234 quantity=5