Add Vagrantfile for macOS and Windows

This commit is contained in:
Khue Doan 2021-08-14 18:50:25 +07:00
parent 04ad086349
commit eb3bf508f9
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.vagrant/
book/
build/
terraform-*-tmp-*/

16
tools/Vagrantfile vendored Normal file
View File

@ -0,0 +1,16 @@
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
config.vm.network "public_network"
config.vm.synced_folder "..", "/home/vagrant/homelab"
config.vm.provider "virtualbox" do |vb|
vb.cpus = "2"
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
pacman -Syu --noconfirm base-devel docker
systemctl enable --now docker
usermod -aG docker vagrant
SHELL
end