PROVIDER = "virtualbox"
BOX = "bento/ubuntu-20.04"
SCRIPT = "./vm-bootstrap.sh"
if Vagrant::Util::Platform.windows? then
def running_in_admin_mode?
(`reg query HKU\\S-1-5-19 2>&1` =~ /ERROR/).nil?
end
unless running_in_admin_mode?
puts "This vagrant makes use of SymLinks to the host. On Windows, Administrative privileges are required to create symlinks (mklink.exe). Try again from an Administrative command prompt."
exit 1
end
end
Vagrant.configure(2) do |config|
config.vm.provider PROVIDER do |vb|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
config.vm.box = BOX
config.vm.provision :docker
config.vm.provision :docker_compose
config.vm.provision "shell", path: SCRIPT
end