forked from BIJ12/CDS-Assembly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (34 loc) · 1.37 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
# -*- 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.define "docker", autostart: false do |docker|
docker.vm.box = "ubuntu/precise64"
# Provision using a shellscript:
docker.vm.provision :shell, path: "docker-daemon.sh"
# This line ensures Docker daemon will get installed on the VM.
docker.vm.provision "docker" do |d|
end
# Forward the HTTP and Docker daemon ports:
docker.vm.network :forwarded_port, host: 8080, guest: 80
docker.vm.network :forwarded_port, host: 2375, guest: 2375
# Provision virtualbox:
docker.vm.provider "virtualbox" do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "3072"]
end
end
config.vm.define "db", autostart: false do |db|
db.vm.box = "ubuntu/precise64"
# Provision using a shellscript:
db.vm.provision :shell, path: "vagrant-db.sh"
# Expose the PostgreSQL and LDAP ports:
db.vm.network :forwarded_port, host: 5432, guest: 5432
config.vm.network :forwarded_port, host: 1389, guest: 1389
# Provision virtualbox:
db.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
end
end