forked from containerd/cgroups
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request containerd#159 from AkihiroSuda/fix-vagrant
fix Vagrant on Travis (switch to KVM)
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
# Fedora box is used for testing cgroup v2 support | ||
config.vm.box = "fedora/32-cloud-base" | ||
config.vm.provider :virtualbox do |v| | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
end | ||
config.vm.provider :libvirt do |v| | ||
v.memory = 2048 | ||
v.cpus = 2 | ||
end | ||
config.vm.provision "shell", inline: <<-SHELL | ||
cat << EOF | dnf -y shell | ||
config exclude kernel,kernel-core | ||
config install_weak_deps false | ||
update | ||
install git golang-go | ||
ts run | ||
EOF | ||
dnf clean all | ||
SHELL | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters