-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
39 lines (31 loc) · 1.26 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 :
# 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|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "trusty"
# https://github.com/mitchellh/vagrant/issues/1673
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.network :forwarded_port, guest: 8000, host: 8000 # Mettle web app
config.vm.network :forwarded_port, guest: 15672, host: 15672 # Rabbit admin
config.vm.provider :virtualbox do |v|
# Allow symlinks to support virtualenvs inside /vagrant.
v.customize([
'setextradata',
:id,
'VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root',
'1'
])
v.customize ["modifyvm", :id,
# Make the guest use the host for name resolution, so names on the VPN
# will work (assuming they work on the host).
"--natdnshostresolver1", "on",
# Allow 1GB of RAM
"--memory", "1024"]
end
config.vm.provision "shell" do |shell|
shell.path = "provision.sh"
shell.args = "true" # set DEV_ENV=true in provisioner script.
end
end