webcrystal/Vagrantfile

20 lines
672 B
Ruby

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "private_network", ip: "192.168.50.50"
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provision "shell" do |s|
s.inline = <<-SHELL
curl -fsSL https://crystal-lang.org/install.sh | sudo bash
curl -LO https://github.com/tsenart/vegeta/releases/download/v12.7.0/vegeta-12.7.0-linux-amd64.tar.gz
tar -zxvf vegeta-12.7.0-linux-amd64.tar.gz
sudo mv ./vegeta /usr/bin/vegeta
SHELL
end
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 1
end
end