TrustedCA-Win2k => TrustedCA
[metze/wireshark/wip.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
6
7 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
9   # Bump the default resources as building is expensive
10   config.vm.provider "virtualbox" do |v|
11     v.memory = 2048
12     v.cpus = 4
13   end
14
15   # Permit X11 forwarding so running the graphical Wireshark works
16   config.ssh.forward_x11 = true
17
18   # Mounting to /vagrant (the default) won't work for building a
19   # Debian package. Let's be consistent for all boxes.
20   config.vm.synced_folder ".", "/vagrant", disabled: true
21   config.vm.synced_folder ".", "/home/vagrant/wireshark", type: "virtualbox"
22
23   # Install and build the various things (including wireshark!)
24   config.vm.define "ubuntu", autostart: false do |deb|
25     deb.vm.box = "ubuntu/xenial64"
26
27     deb.vm.provision "shell" do |s|
28       s.path = 'tools/debian-setup.sh'
29       s.args = ['--install-optional', '--assume-yes']
30     end
31     deb.vm.provision :shell, inline: "apt-get -y install ccache"
32     deb.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
33   end
34
35   config.vm.define "fedora", autostart: false do |rpm|
36     rpm.vm.box = "fedora/28-cloud-base"
37
38     rpm.vm.provision "shell" do |s|
39       s.path = 'tools/rpm-setup.sh'
40       s.args = ['--install-optional', '--assumeyes']
41     end
42     rpm.vm.provision :shell, inline: "yum -y install ccache"
43     rpm.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
44   end
45 end