dockerfile: reduce interval and env config

- bitcoind and cln reduce healthcheck time interval
- cln healthcheck no need to use switch case instead use VLS_NETWORK
Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
Lakshya Singh
2023-11-07 19:00:31 +05:30
parent 5f587ac475
commit f4c13e1a15
5 changed files with 3 additions and 14 deletions

View File

@@ -2,13 +2,4 @@
set -ex
LIGHTNING_NETWORK=""
case $BITCOIN_CHAIN in
"test") LIGHTNING_NETWORK=testnet ;;
"regtest") LIGHTNING_NETWORK=regtest ;;
"signet") LIGHTNING_NETWORK=signet ;;
*) echo "Invalid BITCOIN_CHAIN value: $BITCOIN_CHAIN" && exit 1 ;;
esac
lightning-cli --network $LIGHTNING_NETWORK getinfo
lightning-cli --network $VLS_NETWORK summary