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:
parent
5f587ac475
commit
f4c13e1a15
@ -133,7 +133,7 @@ ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
RUN bitcoind -version | grep "Bitcoin Core version v${BITCOIN_VERSION}"
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=10s --start-period=30s \
|
||||
HEALTHCHECK --interval=10s --timeout=20s --start-period=30s \
|
||||
CMD ["/bin/sh", "-c", "/healthcheck.sh"]
|
||||
|
||||
CMD ["bitcoind"]
|
||||
|
@ -19,7 +19,6 @@ services:
|
||||
ports:
|
||||
- 19846:19846
|
||||
environment:
|
||||
- BITCOIN_CHAIN=regtest
|
||||
- VLS_NETWORK=regtest
|
||||
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
||||
|
||||
|
@ -35,7 +35,6 @@ services:
|
||||
bitcoin-core:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- BITCOIN_CHAIN=test
|
||||
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:18332
|
||||
- RUST_LOG=info
|
||||
- VLS_NETWORK=testnet
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user