-
Notifications
You must be signed in to change notification settings - Fork 13
/
Vagrantfile
49 lines (37 loc) · 1.53 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$update_channel = "alpha"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "coreos-alpha"
config.vm.box_url = "http://%s.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json" % $update_channel
pool_hostname = "pool"
pool_tld = "dev"
config.vm.hostname = pool_hostname
config.dns.tld = pool_tld
config.dns.patterns = [/^.*pool.dev$/]
config.vm.network "private_network", ip: "192.168.20.10"
config.vm.synced_folder ".", "/app", type: "nfs",
:mount_options => ['nolock,vers=3,udp']
config.vm.provision "shell" do |s|
s.path = "./scripts/init_host_server"
s.args = [] # initialize arguments array holder
# If you'd like to enable github integration, uncomment below
# s.args << "--github-bot"
# Set your repository for previewing by pool
s.args << "https://github.com/mookjp/flaskapp.git"
# Set the maximum number of containers runnning at the same time
s.args << "5"
# Set POOL_BASE_DOMAIN
s.args << [pool_hostname, pool_tld].join(".")
end
config.vm.provider :virtualbox do |v|
# On VirtualBox, we don't have guest additions or a functional vboxsf
# in CoreOS, so tell Vagrant that so it can be smarter.
v.check_guest_additions = false
v.functional_vboxsf = false
end
config.ssh.insert_key = false
end
VagrantDNS::Config.logger = Logger.new("dns.log")