From: Kai Moritz Date: Sat, 19 Jun 2021 15:57:59 +0000 (+0200) Subject: Setup with a transfer-service, that can restore its state X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=b82e05fc894aeb6a6d2a0068aa44673131c347c7;p=demos%2Fkafka%2Fdemos-kafka-payment-system-setup Setup with a transfer-service, that can restore its state --- diff --git a/README.sh b/README.sh index 67df46e..bc23ace 100755 --- a/README.sh +++ b/README.sh @@ -33,4 +33,10 @@ http :8091/transfers/1 http -v :8091/transfers id=2 payer=2 payee=1 amount=5 http :8091/transfers/2 +docker-compose restart transfer +while ! [[ $(http 0:8091/actuator/health 2> /dev/null | jq -r .status ) =~ "UP" ]]; do echo "Waiting for transfer..."; sleep 1; done +http :8091/transfers/1 +http :8091/transfers/2 + + docker container stop transferlog diff --git a/docker-compose.yml b/docker-compose.yml index eb1c720..7629d23 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: - zookeeper transfer: - image: juplo/payment-service-demo--transfer:1.0.0 + image: juplo/payment-service-demo--transfer:1.1.0 ports: - "8091:8080" environment: diff --git a/transfer b/transfer index 1534808..9001be5 160000 --- a/transfer +++ b/transfer @@ -1 +1 @@ -Subproject commit 1534808f4b16d6dae9bd0bc417852d1cc7d7191b +Subproject commit 9001be5d43ca1ca7a0dfe5f5a93c8903d1839f15