-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
44 lines (32 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
39
40
41
42
43
44
Vagrant.configure(2) do |config|
# Specify the base box
config.vm.box = "ubuntu/trusty64"
# Setup port forwarding
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
# Setup network
config.vm.network "private_network", ip: "192.168.33.10"
# Setup synced folder
config.vm.synced_folder "projects/", "/var/www/html", group: "www-data", owner: "vagrant", :mount_options => ['dmode=775', 'fmode=775']
# CUSTOMIZATION
config.vm.provider "virtualbox" do |vb|
vb.name = "devspace"
# Customize the amount of memory on the VM:
vb.memory = "1024"
vb.cpus = 1
end
# PROVISION
# config.vm.provision :shell, path: “vagrant/bootstrap.sh"
# Shell provisioning
config.vm.provision "shell" do |s|
s.path = "vagrant/bootstrap.sh"
end
# View the documentation for the provider you are using for more
# information on available options.
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
end