wrapping up 2019.12
[friendica.git] / Vagrantfile
1
2 server_ip = "192.168.22.10"
3 server_memory = "384" # MB
4 server_timezone = "UTC"
5
6 public_folder = "/vagrant"
7
8 Vagrant.configure(2) do |config|
9
10   # Set server to Ubuntu 14.04
11   config.vm.box = "ubuntu/trusty64"
12
13   # Disable automatic box update checking. If you disable this, then
14   # boxes will only be checked for updates when the user runs
15   # `vagrant box outdated`. This is not recommended.
16   # config.vm.box_check_update = false
17
18   # Create a hostname, don't forget to put it to the `hosts` file
19   # This will point to the server's default virtual host
20   # TO DO: Make this work with virtualhost along-side xip.io URL
21   config.vm.hostname = "friendica.dev"
22
23   # Create a static IP
24   config.vm.network :private_network, ip: server_ip
25
26   # Share a folder between host and guest
27   config.vm.synced_folder "./", "/vagrant/", owner: "www-data", group: "vagrant"
28
29   # Provider-specific configuration so you can fine-tune various
30   # backing providers for Vagrant. These expose provider-specific options.
31   config.vm.provider "virtualbox" do |vb|
32   #   # Display the VirtualBox GUI when booting the machine
33   #   vb.gui = true
34   #
35   #   # Customize the amount of memory on the VM:
36       vb.memory = server_memory
37   end
38
39   # Enable provisioning with a shell script. 
40   config.vm.provision "shell", path: "./util/vagrant_provision.sh"
41     # run: "always"
42     # run: "once"
43 end