@@ -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
@@ -58,7 +58,10 @@ spec:
- name: aptos-contracts
image: aptos-node
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:
periodSeconds: 1
failureThreshold: 300