forked from zcash/zcash-gitian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (33 loc) · 1.39 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vagrant.plugins = {
"vagrant-disksize" => {"version" => "0.1.3"},
"vagrant-scp" => {"version" => "0.5.9"}
}
config.ssh.forward_agent = true
config.disksize.size = '64GB'
config.vm.define 'zcash-build', autostart: false do |gitian|
gitian.vm.box = "debian/bullseye64"
gitian.vm.box_version = "11.20220328.1"
gitian.vm.network "forwarded_port", guest: 22, host: 2200, auto_correct: true
gitian.vm.provision "ansible" do |ansible|
ansible.playbook = "gitian.yml"
ansible.verbose = 'vvv'
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
v.cpus = 4
v.customize ["modifyvm", :id, "--nested-hw-virt", "on"]
end
# Added to disable synced folders
# https://www.vagrantup.com/docs/synced-folders/basic_usage#disabling
config.vm.synced_folder ".", "/vagrant", disabled: true
# 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