Create a Vagrantfile that automates the creation and configuration of a VirtualBox virtual machine to run a Java application
- Use the
ubuntu/jammy64box to provision aVirtualBoxVM. - Configure private networking with IP address
192.168.100.100. - Allocate at least
2CPUs and4096MB of memory to the VM. - Write an inline shell script in the
install_depsvariable to install theopenjdk-17-jdkAPT package Write an inline shell script in theinstall_depsvariable. - Use the
shellprovisioner to execute this script. - Configure a Vagrant trigger to execute after vagrant up, which changes the directory to
/vagrantand runs./gradlew bootRun. Once everything is set up, verify that you can see a JSON list of dogs by navigating to http://192.168.100.100:8080/dogs in your web browser.