2016-10-16 18:50:37 -07:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure(2) do |config|
|
|
|
|
|
2019-03-24 09:44:43 -07:00
|
|
|
config.vagrant.plugins = {
|
|
|
|
"vagrant-disksize" => {"version" => "0.1.3"},
|
2021-12-14 14:01:43 -08:00
|
|
|
"vagrant-scp" => {"version" => "0.5.9"}
|
2019-03-24 09:44:43 -07:00
|
|
|
}
|
2019-03-24 09:43:37 -07:00
|
|
|
|
2016-10-16 18:50:37 -07:00
|
|
|
config.ssh.forward_agent = true
|
2022-10-20 15:21:49 -07:00
|
|
|
config.disksize.size = '64GB'
|
2016-10-16 18:50:37 -07:00
|
|
|
config.vm.define 'zcash-build', autostart: false do |gitian|
|
2022-04-04 23:17:15 -07:00
|
|
|
gitian.vm.box = "debian/bullseye64"
|
|
|
|
gitian.vm.box_version = "11.20220328.1"
|
2016-10-16 18:50:37 -07:00
|
|
|
gitian.vm.network "forwarded_port", guest: 22, host: 2200, auto_correct: true
|
|
|
|
gitian.vm.provision "ansible" do |ansible|
|
|
|
|
ansible.playbook = "gitian.yml"
|
2019-06-18 19:30:56 -07:00
|
|
|
ansible.verbose = 'vvv'
|
2016-10-16 18:50:37 -07:00
|
|
|
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
|
|
|
|
end
|
|
|
|
gitian.vm.provider "virtualbox" do |v|
|
|
|
|
v.name = "zcash-build"
|
|
|
|
v.memory = 4096
|
2022-10-17 12:37:14 -07:00
|
|
|
v.cpus = 4
|
2022-10-17 12:36:59 -07:00
|
|
|
v.customize ["modifyvm", :id, "--nested-hw-virt", "on"]
|
2016-10-16 18:50:37 -07:00
|
|
|
end
|
2021-02-22 14:30:36 -08:00
|
|
|
|
|
|
|
# Added to disable synced folders
|
|
|
|
# https://www.vagrantup.com/docs/synced-folders/basic_usage#disabling
|
|
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
|
2016-10-16 18:50:37 -07:00
|
|
|
# gitian.vm.synced_folder "~/.gnupg", "/home/vagrant/.gnupg", type: "sshfs"
|
|
|
|
# gitian.vm.synced_folder "./gitian.sigs", "/home/vagrant/gitian.sigs", create: true
|
|
|
|
# gitian.vm.synced_folder "./zcash-binaries", "/home/vagrant/zcash-binaries", create: true
|
|
|
|
gitian.vm.post_up_message = "Zcash deterministic build environment started."
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|