Эх сурвалжийг харах

tilt: aptos startup dependency fix

Evan Gray 3 жил өмнө
parent
commit
a3c9de7d2d

+ 4 - 0
aptos/scripts/wait_for_devnet

@@ -0,0 +1,4 @@
+#!/bin/bash
+set -e
+while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' 0.0.0.0:8080/v1/-/healthy)" != "200" ]]; do sleep 5; done
+while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' 0.0.0.0:8081/health)" != "200" ]]; do sleep 5; done

+ 4 - 1
devnet/aptos-localnet.yaml

@@ -58,7 +58,10 @@ spec:
         - name: aptos-contracts
         - name: aptos-contracts
           image: aptos-node
           image: aptos-node
           command: ["/bin/bash", "-c"]
           command: ["/bin/bash", "-c"]
-          args: ["cd /tmp/scripts && ./deploy devnet && ./register_devnet && touch success && sleep infinity"]
+          args:
+            [
+              "cd /tmp/scripts && ./wait_for_devnet && ./deploy devnet && ./register_devnet && touch success && sleep infinity",
+            ]
           readinessProbe:
           readinessProbe:
             periodSeconds: 1
             periodSeconds: 1
             failureThreshold: 300
             failureThreshold: 300