-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (23 loc) · 1.05 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
Vagrant.configure("2") do |config|
config.vm.box = "trusty"
config.ssh.username = "vagrant"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box "
config.vm.network :forwarded_port, guest: 8080, host: 13370
config.vm.network :forwarded_port, guest: 7990, host: 13371
config.vm.network :forwarded_port, guest: 7999, host: 13372
config.vm.network :forwarded_port, guest: 8085, host: 13373
config.vm.network :forwarded_port, guest: 54663, host: 13374
config.vm.network :forwarded_port, guest: 8090, host: 13375
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 4096]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
$dockerinstall = <<SCRIPT
echo Installing Docker...
sudo apt-get update
sudo wget -qO- https://get.docker.com/ | sh
echo Docker installed...
SCRIPT
config.vm.provision :shell, :inline => $dockerinstall, :privileged => false
end