From 6d5760a18fe199d5b174c601bc5745fe92b88913 Mon Sep 17 00:00:00 2001 From: Oliver Ziegler Date: Thu, 14 Jun 2018 03:37:41 +0200 Subject: [PATCH 1/4] Feathercoin Support --- .../docker-fragments/feathercoin.yml | 33 +++++++++++++++++++ .../src/CryptoDefinition.cs | 6 ++++ feathercoin-cli.ps1 | 1 + feathercoin-cli.sh | 3 ++ 4 files changed, 43 insertions(+) create mode 100644 docker-compose-generator/docker-fragments/feathercoin.yml create mode 100644 feathercoin-cli.ps1 create mode 100644 feathercoin-cli.sh diff --git a/docker-compose-generator/docker-fragments/feathercoin.yml b/docker-compose-generator/docker-fragments/feathercoin.yml new file mode 100644 index 0000000..313cdb4 --- /dev/null +++ b/docker-compose-generator/docker-fragments/feathercoin.yml @@ -0,0 +1,33 @@ +version: "3" + +services: + feathercoind: + restart: unless-stopped + container_name: btcpayserver_feathercoind + image: chekaz/docker-feathercoin:0.16.0 + environment: + BITCOIN_EXTRA_ARGS: | + rpcport=43782 + ${NBITCOIN_NETWORK:-regtest}=1 + port=39388 + whitelist=0.0.0.0/0 + expose: + - "43782" + - "39388" + volumes: + - "feathercoin_datadir:/data" + nbxplorer: + environment: + NBXPLORER_CHAINS: "ftc" + NBXPLORER_FTCRPCURL: http://feathercoind:43782/ + NBXPLORER_FTCNODEENDPOINT: feathercoind:39388 + links: + - feathercoind + volumes: + - "feathercoin_datadir:/root/.feathercoin" + btcpayserver: + environment: + BTCPAY_CHAINS: "ftc" + BTCPAY_FTCEXPLORERURL: http://nbxplorer:32838/ +volumes: + feathercoin_datadir: diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 90104f7..579a3bb 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/docker-compose-generator/src/CryptoDefinition.cs @@ -43,6 +43,12 @@ namespace DockerGenerator Crypto = "btg", CryptoFragment = "bgold", CLightningFragment = null, + }, + new CryptoDefinition() + { + Crypto = "ftc", + CryptoFragment = "feathercoin", + CLightningFragment = null, } }; } diff --git a/feathercoin-cli.ps1 b/feathercoin-cli.ps1 new file mode 100644 index 0000000..bf4bd19 --- /dev/null +++ b/feathercoin-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" $args diff --git a/feathercoin-cli.sh b/feathercoin-cli.sh new file mode 100644 index 0000000..880f507 --- /dev/null +++ b/feathercoin-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" "$@" From fc16609522b45f78c1fe20ff84242dfcc1ecceb2 Mon Sep 17 00:00:00 2001 From: Oliver Ziegler Date: Thu, 14 Jun 2018 16:10:29 +0200 Subject: [PATCH 2/4] Feathercoin Support Update - feathercoin-cli.ps1 executable - feathercoin-cli.sh executable - spacing fixxed --- docker-compose-generator/src/CryptoDefinition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-generator/src/CryptoDefinition.cs b/docker-compose-generator/src/CryptoDefinition.cs index 579a3bb..d35d20c 100644 --- a/docker-compose-generator/src/CryptoDefinition.cs +++ b/docker-compose-generator/src/CryptoDefinition.cs @@ -44,7 +44,7 @@ namespace DockerGenerator CryptoFragment = "bgold", CLightningFragment = null, }, - new CryptoDefinition() + new CryptoDefinition() { Crypto = "ftc", CryptoFragment = "feathercoin", From c7bb26085fd9a40bfd245100d6fdbe338decd734 Mon Sep 17 00:00:00 2001 From: Oliver Ziegler Date: Thu, 14 Jun 2018 16:36:54 +0200 Subject: [PATCH 3/4] Feathercoin Support Update-two --- feathercoin-cli.ps1 | 2 +- feathercoin-cli.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feathercoin-cli.ps1 b/feathercoin-cli.ps1 index bf4bd19..fe10f8c 100644 --- a/feathercoin-cli.ps1 +++ b/feathercoin-cli.ps1 @@ -1 +1 @@ -docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" $args +docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" $args \ No newline at end of file diff --git a/feathercoin-cli.sh b/feathercoin-cli.sh index 880f507..bfc1064 100644 --- a/feathercoin-cli.sh +++ b/feathercoin-cli.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" "$@" +docker exec -ti btcpayserver_feathercoind feathercoin-cli -datadir="/data" "$@" \ No newline at end of file From 01fcf4fc2eb983322d28241cbebcfa18b394fbbf Mon Sep 17 00:00:00 2001 From: Oliver Ziegler Date: Thu, 14 Jun 2018 16:51:35 +0200 Subject: [PATCH 4/4] Change permissions --- feathercoin-cli.ps1 | 0 feathercoin-cli.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 feathercoin-cli.ps1 mode change 100644 => 100755 feathercoin-cli.sh diff --git a/feathercoin-cli.ps1 b/feathercoin-cli.ps1 old mode 100644 new mode 100755 diff --git a/feathercoin-cli.sh b/feathercoin-cli.sh old mode 100644 new mode 100755