This commit is contained in:
Dread 2022-03-29 12:10:02 -04:00
parent 7fd67c3b15
commit 55ed10bc93
3 changed files with 0 additions and 41 deletions

View File

@ -50,9 +50,7 @@ RUN cp wait-for-it.sh /usr/local/bin && chmod +x start.sh && chmod +x /backend/w
# BUILD S9 CUSTOM
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
ADD assets/utils/health-check.sh /usr/local/bin/health-check.sh
ADD assets/utils/health-check.sh /usr/local/bin/check-synced.sh
RUN chmod +x /usr/local/bin/health-check.sh
RUN chmod +x /usr/local/bin/check-synced.sh
# remove to we can manually handle db initalization
RUN rm -rf /var/lib/mysql/

View File

@ -1,28 +0,0 @@
#!/bin/bash
set -e
b_type=$(yq e '.bitcoind.type' /root/start9/config.yaml)
if [ "$b_type" = "internal" ]; then
b_host="bitcoind.embassy"
b_username=$(yq e '.bitcoind.user' /root/start9/config.yaml)
b_password=$(yq e '.bitcoind.password' /root/start9/config.yaml)
elif [ "$b_type" = "internal-proxy" ]; then
b_host="btc-rpc-proxy.embassy"
b_username=$(yq e '.bitcoind.user' /root/start9/config.yaml)
b_password=$(yq e '.bitcoind.password' /root/start9/config.yaml)
else
b_host=$(yq e '.bitcoind.host' /root/start9/config.yaml)
b_username=$(yq e '.bitcoind.user' /root/start9/config.yaml)
b_password=$(yq e '.bitcoind.password' /root/start9/config.yaml)
fi
b_gbc_result=$(bitcoin-cli -rpcconnect=$b_host -rpcuser=$b_username -rpcpassword=$b_password getblockcount)
error_code=$?
if [ $error_code -ne 0 ]; then
echo $b_gbc_result >&2
exit $error_code
fi
blockheight=$(echo "$c_gi_result" | yq e '.blockheight' -)
echo "Catching up to blocks from bitcoind. This may take several hours. Progress: $blockheight of $b_gbc_result blocks" >&2
exit 61

View File

@ -48,17 +48,6 @@ health-checks:
mounts: {}
io-format: json
inject: true
synced:
name: Synced
success-message: Synced to chain and ready to perform on-chain operations
type: docker
image: main
system: false
entrypoint: check-synced.sh
args: []
mounts: {}
io-format: yaml
inject: true
config:
get:
type: docker