Download and build NBXplorer and BTCPay
This commit is contained in:
23
site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb
Normal file
23
site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb
Normal 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
|
||||
23
site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb
Normal file
23
site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb
Normal 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
|
||||
Reference in New Issue
Block a user