-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathVagrantfile
65 lines (53 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# SAP Dissector Plugin for Wireshark
#
# SECUREAUTH LABS. Copyright (C) 2022 SecureAuth Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Author:
# Martin Gallo (@martingalloar) from SecureAuth's Innovation Labs team.
#
Vagrant.require_version ">= 1.8.0"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/bionic64"
# Permit X11 forwarding so running the graphical Wireshark works
config.ssh.forward_x11 = true
# Define a Vagrant VM to compile as a standalone plugin
config.vm.define "standalone" do |standalone|
standalone.vm.provision "shell",
path: "tools/ubuntu-provision-standalone.sh",
privileged: false,
env: {"PLUGIN_DIR" => "/vagrant/"}
standalone.vm.provision "shell",
path: "tools/ubuntu-build-standalone.sh",
privileged: false,
env: {"PLUGIN_DIR" => "/vagrant/"}
end
# Define a Vagrant VM to compile from source
config.vm.define "source" do |source|
source.vm.provision "shell",
path: "tools/ubuntu-provision-source.sh",
privileged: false,
env: {"WIRESHARK_BRANCH" => "release-3.6",
"PLUGIN_DIR" => "/vagrant/"}
source.vm.provision "shell",
path: "tools/ubuntu-build-source.sh",
privileged: false,
env: {"BUILD_WIRESHARK" => "yes",
"WIRESHARK_BRANCH" => "release-3.6",
"PLUGIN_DIR" => "/vagrant/"}
# Add some memory
source.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
end
end
end