Setup with a transfer-service, that can restore its state
authorKai Moritz <kai@juplo.de>
Sat, 19 Jun 2021 15:57:59 +0000 (17:57 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 24 Jun 2021 19:04:22 +0000 (21:04 +0200)
README.sh
docker-compose.yml
transfer

index 67df46e..bc23ace 100755 (executable)
--- 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
index eb1c720..7629d23 100644 (file)
@@ -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:
index 1534808..9001be5 160000 (submodule)
--- a/transfer
+++ b/transfer
@@ -1 +1 @@
-Subproject commit 1534808f4b16d6dae9bd0bc417852d1cc7d7191b
+Subproject commit 9001be5d43ca1ca7a0dfe5f5a93c8903d1839f15