tilt: aptos startup dependency fix

This commit is contained in:
Evan Gray 2022-11-08 22:36:17 +00:00 committed by Evan Gray
parent cea87d344c
commit a3c9de7d2d
2 changed files with 8 additions and 1 deletions

4
aptos/scripts/wait_for_devnet Executable file
View File

@ -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

View File

@ -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