]> git.mxchange.org Git - friendica.git/blob - Vagrantfile
Merge pull request #2949 from silke/vagrant-1604
[friendica.git] / Vagrantfile
1
2 server_ip_trusty = "192.168.22.10"
3 server_ip_xenial = "192.168.22.11"
4 server_memory = "1024" # MB
5 server_timezone = "UTC"
6
7 public_folder = "/vagrant"
8
9 Vagrant.configure(2) do |config|
10 ######################################################################
11   # Set server to Ubuntu 14.04
12   config.vm.define "trusty" do |trusty|
13     trusty.vm.box = "ubuntu/trusty64"
14
15     # Disable automatic box update checking. If you disable this, then
16     # boxes will only be checked for updates when the user runs
17     # `vagrant box outdated`. This is not recommended.
18     # config.vm.box_check_update = false
19
20     # Create a hostname, don't forget to put it to the `hosts` file
21     # This will point to the server's default virtual host
22     # TO DO: Make this work with virtualhost along-side xip.io URL
23     trusty.vm.hostname = "friendica-trusty.dev"
24
25     # Create a static IP
26     trusty.vm.network :private_network, ip: server_ip_trusty
27   end
28
29 ######################################################################
30   # Set server to Ubuntu 16.04
31   config.vm.define "xenial" do |xenial|
32     xenial.vm.box = "boxcutter/ubuntu1604"
33
34     # Disable automatic box update checking. If you disable this, then
35     # boxes will only be checked for updates when the user runs
36     # `vagrant box outdated`. This is not recommended.
37     # config.vm.box_check_update = false
38
39     # Create a hostname, don't forget to put it to the `hosts` file
40     # This will point to the server's default virtual host
41     # TO DO: Make this work with virtualhost along-side xip.io URL
42     xenial.vm.hostname = "friendica-xenial.dev"
43
44     # Create a static IP
45     xenial.vm.network :private_network, ip: server_ip_xenial
46   end
47
48 ######################################################################
49   # Share a folder between host and guest
50   config.vm.synced_folder "./", "/vagrant/", owner: "www-data", group: "vagrant"
51
52
53   # Provider-specific configuration so you can fine-tune various
54   # backing providers for Vagrant. These expose provider-specific options.
55   config.vm.provider "virtualbox" do |vb|
56   #   # Display the VirtualBox GUI when booting the machine
57   #   vb.gui = true
58   #
59   #   # Customize the amount of memory on the VM:
60       vb.memory = server_memory
61   end
62
63   # Enable provisioning with a shell script. 
64   config.vm.provision "shell", path: "./util/vagrant_provision.sh"
65     # run: "always"
66     # run: "once"
67 end