Download and build NBXplorer and BTCPay

This commit is contained in:
2020-12-21 11:12:14 +01:00
parent a2b76c7d76
commit aa2aa59e28
5 changed files with 57 additions and 0 deletions

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