txoo: entrypoint update use BITCOIN_RPC_URL
- common env var Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
4ae7afa4a5
commit
f9de5cfa30
@ -32,10 +32,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- txoo_regtest:/root/.txoo/
|
- txoo_regtest:/root/.txoo/
|
||||||
- bitcoin_regtest:/root/.bitcoin/
|
- bitcoin_regtest:/root/.bitcoin/
|
||||||
command:
|
|
||||||
- -r http://rpcuser:VLSsigner1@bitcoind:38332
|
|
||||||
environment:
|
environment:
|
||||||
- BITCOIN_NETWORK=regtest
|
- BITCOIN_NETWORK=regtest
|
||||||
|
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:38332
|
||||||
|
|
||||||
vls:
|
vls:
|
||||||
container_name: vlsd-regtest
|
container_name: vlsd-regtest
|
||||||
|
@ -47,8 +47,6 @@ services:
|
|||||||
image: txood:${IMAGE_TAG:-latest}
|
image: txood:${IMAGE_TAG:-latest}
|
||||||
container_name: txood-test
|
container_name: txood-test
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command:
|
|
||||||
- -r http://rpcuser:VLSsigner1@bitcoind:18332
|
|
||||||
networks:
|
networks:
|
||||||
- lightning
|
- lightning
|
||||||
volumes:
|
volumes:
|
||||||
@ -59,6 +57,7 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
- BITCOIN_NETWORK=testnet
|
- BITCOIN_NETWORK=testnet
|
||||||
|
- BITCOIND_RPC_URL=http://rpcuser:VLSsigner1@bitcoind:18332
|
||||||
|
|
||||||
vls:
|
vls:
|
||||||
build:
|
build:
|
||||||
|
@ -1,10 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
if [ $(echo "$1" | cut -c1) = "-" ]; then
|
if [ $(echo "$1" | cut -c1) = "-" ]; then
|
||||||
echo "$0: assuming arguments for txood"
|
echo "$0: assuming arguments for txood"
|
||||||
|
|
||||||
set -- txood --network $BITCOIN_NETWORK "$@"
|
set -- txood "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $(echo "$1" | cut -c1) = "-" ] || [ "$1" = "txood" ]; then
|
||||||
|
echo "$0: setting network to $BITCOIN_NETWORK"
|
||||||
|
echo "$0: setting RPC URL to $BITCOIND_RPC_URL"
|
||||||
|
|
||||||
|
set -- "$@" --network $BITCOIN_NETWORK -r $BITCOIND_RPC_URL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user