2015-06-25 02:05:38 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
|
|
|
|
# Bump the default resources as building is expensive
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
2018-03-18 22:09:11 +00:00
|
|
|
v.memory = 2048
|
|
|
|
v.cpus = 4
|
2015-06-25 02:05:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# Permit X11 forwarding so running the graphical Wireshark works
|
|
|
|
config.ssh.forward_x11 = true
|
|
|
|
|
2018-08-30 22:11:02 +00:00
|
|
|
# Mounting to /vagrant (the default) won't work for building a
|
|
|
|
# Debian package. Let's be consistent for all boxes.
|
|
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
config.vm.synced_folder ".", "/home/vagrant/wireshark", type: "virtualbox"
|
|
|
|
|
2015-06-25 02:05:38 +00:00
|
|
|
# Install and build the various things (including wireshark!)
|
2018-08-30 20:37:07 +00:00
|
|
|
config.vm.define "ubuntu", autostart: false do |deb|
|
2019-05-30 11:24:02 +00:00
|
|
|
deb.vm.box = "ubuntu/bionic64"
|
2018-08-30 20:37:07 +00:00
|
|
|
|
|
|
|
deb.vm.provision "shell" do |s|
|
|
|
|
s.path = 'tools/debian-setup.sh'
|
|
|
|
s.args = ['--install-optional', '--assume-yes']
|
|
|
|
end
|
2018-08-30 21:33:52 +00:00
|
|
|
deb.vm.provision :shell, inline: "apt-get -y install ccache"
|
2018-08-30 20:37:07 +00:00
|
|
|
deb.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "fedora", autostart: false do |rpm|
|
|
|
|
rpm.vm.box = "fedora/28-cloud-base"
|
|
|
|
|
|
|
|
rpm.vm.provision "shell" do |s|
|
|
|
|
s.path = 'tools/rpm-setup.sh'
|
|
|
|
s.args = ['--install-optional', '--assumeyes']
|
|
|
|
end
|
2018-08-30 21:33:52 +00:00
|
|
|
rpm.vm.provision :shell, inline: "yum -y install ccache"
|
2018-08-30 20:37:07 +00:00
|
|
|
rpm.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
|
2018-08-30 20:18:43 +00:00
|
|
|
end
|
2015-06-25 02:05:38 +00:00
|
|
|
end
|