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:
@@ -142,7 +142,7 @@ RUN pip3 install \
|
||||
requests \
|
||||
packaging
|
||||
|
||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=15s \
|
||||
HEALTHCHECK --interval=5s --timeout=10s --start-period=5s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user