Download and build NBXplorer and BTCPay

This commit is contained in:
Basti 2020-12-21 11:12:14 +01:00
parent a2b76c7d76
commit aa2aa59e28
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
5 changed files with 57 additions and 0 deletions

View File

@ -20,6 +20,8 @@
"kosmos-bitcoin::source", "kosmos-bitcoin::source",
"kosmos-bitcoin::lnd", "kosmos-bitcoin::lnd",
"kosmos-bitcoin::dotnet", "kosmos-bitcoin::dotnet",
"kosmos-bitcoin::nbxplorer",
"kosmos-bitcoin::btcpay",
"apt::default", "apt::default",
"timezone_iii::default", "timezone_iii::default",
"timezone_iii::debian", "timezone_iii::debian",

View File

@ -2,4 +2,6 @@ name "btcpay"
run_list %w( run_list %w(
kosmos-bitcoin::dotnet kosmos-bitcoin::dotnet
kosmos-bitcoin::nbxplorer
kosmos-bitcoin::btcpay
) )

View File

@ -32,3 +32,10 @@ node.default['lnd']['source_dir'] = '/opt/lnd'
node.default['dotnet']['ms_packages_src_url'] = "https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb" node.default['dotnet']['ms_packages_src_url'] = "https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb"
node.default['dotnet']['ms_packages_src_checksum'] = "4df5811c41fdded83eb9e2da9336a8dfa5594a79dc8a80133bd815f4f85b9991" node.default['dotnet']['ms_packages_src_checksum'] = "4df5811c41fdded83eb9e2da9336a8dfa5594a79dc8a80133bd815f4f85b9991"
node.default['nbxplorer']['repo'] = 'https://github.com/dgarage/NBXplorer'
node.default['nbxplorer']['revision'] = 'latest'
node.default['nbxplorer']['source_dir'] = '/opt/nbxplorer'
node.default['btcpay']['repo'] = 'https://github.com/btcpayserver/btcpayserver'
node.default['btcpay']['revision'] = 'latest'
node.default['btcpay']['source_dir'] = '/opt/btcpay'

View File

@ -0,0 +1,23 @@
#
# Cookbook:: kosmos-bitcoin
# Recipe:: btcpay
#
build_essential
include_recipe "git"
git node['nbxplorer']['source_dir'] do
repository node['nbxplorer']['repo']
revision node['nbxplorer']['revision']
action :sync
notifies :run, 'bash[build_nbxplorer]', :immediately
end
bash 'build_nbxplorer' do
cwd node['nbxplorer']['source_dir']
code <<-EOH
./build.sh
EOH
action :nothing
end

View File

@ -0,0 +1,23 @@
#
# Cookbook:: kosmos-bitcoin
# Recipe:: btcpay
#
build_essential
include_recipe "git"
git node['btcpay']['source_dir'] do
repository node['btcpay']['repo']
revision node['btcpay']['revision']
action :sync
notifies :run, 'bash[build_btcpay]', :immediately
end
bash 'build_btcpay' do
cwd node['btcpay']['source_dir']
code <<-EOH
./build.sh
EOH
action :nothing
end