Skip to content

Commit 8539544

Browse files
committed
Merge pull request #10 from dockito/retry-connection
Retry connection
2 parents 3c2b03c + 4e82b31 commit 8539544

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ONVAULT

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ log () {
1818
echo -e "${GREEN}[Dockito Vault]${NC} $@"
1919
}
2020

21+
if ! curl -s "${VAULT_URI}/_ping"; then
22+
COUNTER=0
23+
echo 'Waiting 10s for dockito/vault to be ready...'
24+
while ! curl -s "${VAULT_URI}/_ping" && [ $COUNTER != 10 ]; do
25+
sleep 1
26+
COUNTER=$[$COUNTER +1]
27+
done
28+
fi
29+
2130
if curl -s "${VAULT_URI}/_ping"; then
2231
log "Downloading private keys..."
2332

0 commit comments

Comments
 (0)