Vagrantfile 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  4. # configures the configuration version (we support older styles for
  5. # backwards compatibility). Please don't change it unless you know what
  6. # you're doing.
  7. Vagrant.configure(2) do |config|
  8. # The most common configuration options are documented and commented below.
  9. # For a complete reference, please see the online documentation at
  10. # https://docs.vagrantup.com.
  11. # Every Vagrant development environment requires a box. You can search for
  12. # boxes at https://atlas.hashicorp.com/search.
  13. config.vm.box = "ubuntu/jammy64"
  14. config.vm.box_version = "~> 20220810.0.0"
  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. # Create a forwarded port mapping which allows access to a specific port
  20. # within the machine from a port on the host machine. In the example below,
  21. # accessing "localhost:8000" will access port 8000 on the guest machine.
  22. config.vm.network "forwarded_port", guest: 8000, host: 8000
  23. # Create a private network, which allows host-only access to the machine
  24. # using a specific IP.
  25. # config.vm.network "private_network", ip: "192.168.33.10"
  26. # Create a public network, which generally matched to bridged network.
  27. # Bridged networks make the machine appear as another physical device on
  28. # your network.
  29. # config.vm.network "public_network"
  30. # Share an additional folder to the guest VM. The first argument is
  31. # the path on the host to the actual folder. The second argument is
  32. # the path on the guest to mount the folder. And the optional third
  33. # argument is a set of non-required options.
  34. # config.vm.synced_folder "../data", "/vagrant_data"
  35. # Provider-specific configuration so you can fine-tune various
  36. # backing providers for Vagrant. These expose provider-specific options.
  37. # Example for VirtualBox:
  38. #
  39. # config.vm.provider "virtualbox" do |vb|
  40. # # Display the VirtualBox GUI when booting the machine
  41. # vb.gui = true
  42. #
  43. # # Customize the amount of memory on the VM:
  44. # vb.memory = "1024"
  45. # end
  46. #
  47. # View the documentation for the provider you are using for more
  48. # information on available options.
  49. # Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
  50. # such as FTP and Heroku are also available. See the documentation at
  51. # https://docs.vagrantup.com/v2/push/atlas.html for more information.
  52. # config.push.define "atlas" do |push|
  53. # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
  54. # end
  55. # Enable provisioning with a shell script. Additional provisioners such as
  56. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  57. # documentation for more information about their specific syntax and use.
  58. # config.vm.provision "shell", inline: <<-SHELL
  59. # sudo apt-get update
  60. # sudo apt-get install -y apache2
  61. # SHELL
  62. config.vm.provision :shell, :path => "vagrant/provision.sh", :args => "bakerydemo"
  63. # Enable agent forwarding over SSH connections.
  64. config.ssh.forward_agent = true
  65. if File.exist? "Vagrantfile.local"
  66. instance_eval File.read("Vagrantfile.local"), "Vagrantfile.local"
  67. end
  68. end