Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

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