-
Notifications
You must be signed in to change notification settings - Fork 8
/
Vagrantfile
55 lines (44 loc) · 2.3 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
# Copyright (C) 2013-2016 Pelagicore AB <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# For further information see LICENSE
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 200 ]
end
# Sync the repo root with this path in the VM
config.vm.synced_folder "./", "/home/ubuntu/dbus-proxy", create: true
# Fix the tty for the root user
config.vm.provision "shell", privileged: true, path: "vagrant-cookbook/system-config/fix-tty.sh"
# Workaround for some bad network stacks
config.vm.provision "shell", privileged: false, path: "vagrant-cookbook/utils/keepalive.sh"
# Use apt-cacher on cache server
if ENV['APT_CACHE_SERVER'] then
config.vm.provision "shell",
args: [ENV['APT_CACHE_SERVER']],
path: "vagrant-cookbook/system-config/apt-cacher.sh"
end
config.vm.provision "shell", inline: "apt-get update"
config.vm.provision "shell", path: "vagrant-cookbook/deps/common-build-dependencies.sh"
config.vm.provision "shell", path: "vagrant-cookbook/deps/common-run-dependencies.sh"
config.vm.provision "shell", path: "vagrant-cookbook/deps/sphinx-dependencies.sh"
# Add known hosts
config.vm.provision "shell", privileged: false, path: "vagrant-cookbook/system-config/ssh-keyscan-conf.sh"
# Install dependencies for py.test and D-Bus testing
config.vm.provision "shell", path: "vagrant-cookbook/deps/pytest-and-dbus-testing-dependencies.sh"
end