feat: add vagrantfile support
This commit is contained in:
17
Vagrantfile
vendored
Normal file
17
Vagrantfile
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
$script = <<-SCRIPT
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
echo 'source "$HOME/.cargo/env"' > ~/.bashrc
|
||||
SCRIPT
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/freebsd14"
|
||||
|
||||
config.vm.network "private_network", ip: "192.168.56.198"
|
||||
|
||||
config.vm.provision "shell", inline: $script
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.memory = 8192
|
||||
vb.cpus = 8
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user