Skip to content

Commit

Permalink
Make Teku VC wait as well
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 15, 2023
1 parent 0f727af commit 482cc18
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions teku/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ fi
# Web3signer URL
if [ "${WEB3SIGNER}" = "true" ]; then
__w3s_url="--validators-external-signer-url http://web3signer:9000 --validators-external-signer-public-keys external-signer"
while true; do
if curl -s -m 5 http://web3signer:9000 &> /dev/null; then
echo "web3signer is up, starting Teku"
break
else
echo "Waiting for web3signer to be reachable..."
sleep 5
fi
done
else
__w3s_url=""
fi
Expand Down

0 comments on commit 482cc18

Please sign in to comment.