# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| # Fedora box is used for testing cgroup v2 support config.vm.box = "fedora/35-cloud-base" config.vm.provider :virtualbox do |v| v.memory = 4096 v.cpus = 2 end config.vm.provider :libvirt do |v| v.memory = 4096 v.cpus = 2 end config.vm.provision "shell", inline: <<-SHELL set -eux -o pipefail # configuration GO_VERSION="1.17.7" # install gcc and Golang dnf -y install gcc curl -fsSL "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" | tar Cxz /usr/local # setup env vars cat >> /etc/profile.d/sh.local < /test.sh <