docker: add "CHAIN" parameter

After addition of the Litecoin client image (ltcd), we should add
additional parameter to notify the start script which network we should
use.
This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-07-05 10:41:31 -07:00
1 parent 25970bc113
commit 816b9ada44
2 files changed
+49 -11

No files matched your search

+7 -6
View File
@@ -43,15 +43,16 @@ RPCUSER=$(set_default "$RPCUSER" "devuser")
RPCPASS=$(set_default "$RPCPASS" "devpass")
DEBUG=$(set_default "$DEBUG" "debug")
NETWORK=$(set_default "$NETWORK" "simnet")
CHAIN=$(set_default "$CHAIN" "bitcoin")
lnd \
--datadir="/data" \
--logdir="/data" \
--bitcoin.active \
"--bitcoin.$NETWORK" \
--bitcoin.rpchost="btcd" \
--bitcoin.rpccert="/rpc/rpc.cert" \
--bitcoin.rpcuser="$RPCUSER" \
--bitcoin.rpcpass="$RPCPASS" \
"--$CHAIN.rpccert"="/rpc/rpc.cert" \
"--$CHAIN.active" \
"--$CHAIN.$NETWORK" \
"--$CHAIN.rpchost"="blockchain" \
"--$CHAIN.rpcuser"="$RPCUSER" \
"--$CHAIN.rpcpass"="$RPCPASS" \
--debuglevel="$DEBUG" \
"$@"