From 3cc614c024900e11ab65d9781b5d9dbc9d3eaeb0 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 21 Oct 2017 19:56:55 +0900 Subject: [PATCH] Add command line so no need of bitcoin-cli in dev --- BTCPayServer.Tests/README.md | 2 +- BTCPayServer.Tests/docker-compose.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/BTCPayServer.Tests/README.md b/BTCPayServer.Tests/README.md index 14ebab334..24e4296ee 100644 --- a/BTCPayServer.Tests/README.md +++ b/BTCPayServer.Tests/README.md @@ -34,5 +34,5 @@ docker-compose run --rm tests The Bitcoin RPC server is exposed to the host, for example, you can send 0.23111090 BTC to mohu16LH66ptoWGEL1GtP6KHTBJYXMWhEf. ``` -bitcoin-cli -regtest -rpcport=43782 -rpcuser=ceiwHEbqWI83 -rpcpassword=DwubwWsoo3 sendtoaddress "mohu16LH66ptoWGEL1GtP6KHTBJYXMWhEf" 0.23111090 +docker exec -ti btcpayserver_dev_bitcoind bitcoin-cli -regtest -conf="/data/bitcoin.conf" -datadir="/data" sendtoaddress "mohu16LH66ptoWGEL1GtP6KHTBJYXMWhEf" 0.23111090 ``` \ No newline at end of file diff --git a/BTCPayServer.Tests/docker-compose.yml b/BTCPayServer.Tests/docker-compose.yml index b821e5398..0ff369c53 100644 --- a/BTCPayServer.Tests/docker-compose.yml +++ b/BTCPayServer.Tests/docker-compose.yml @@ -39,14 +39,13 @@ services: - postgres bitcoind: + container_name: btcpayserver_dev_bitcoind image: nicolasdorier/docker-bitcoin:0.15.0.1 ports: - "43782:43782" - "39388:39388" environment: - BITCOIN_EXTRA_ARGS: "regtest=1\nrpcport=43782\nport=39388\nwhitelist=0.0.0.0/0" - BITCOIN_RPC_USER: ceiwHEbqWI83 - BITCOIN_RPC_PASSWORD: DwubwWsoo3 + BITCOIN_EXTRA_ARGS: "rpcuser=ceiwHEbqWI83\nrpcpassword=DwubwWsoo3\nregtest=1\nrpcport=43782\nport=39388\nwhitelist=0.0.0.0/0" expose: - "43782" - "39388"