Created
November 6, 2016 21:22
-
-
Save lucasallan/003027588ac5abdf5ef055b6c790946d to your computer and use it in GitHub Desktop.
rkt vagrant
This file contains hidden or 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
Vagrant.configure('2') do |config| | |
config.vm.box = "ubuntu/xenial64" # Ubuntu 16.04 | |
# fix issues with slow dns http://serverfault.com/a/595010 | |
config.vm.provider :virtualbox do |vb, override| | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
vb.customize ["modifyvm", :id, "--memory", "4096"] | |
vb.customize ["modifyvm", :id, "--cpus", "4"] | |
end | |
config.vm.provider :libvirt do |libvirt, override| | |
libvirt.memory = 1024 | |
end | |
config.vm.network "private_network", type: "dhcp" | |
config.vm.provision :shell, :privileged => true, :path => "scripts/install-rkt.sh" | |
config.vm.provision :shell, :inline => "usermod -a -G rkt-admin ubuntu" | |
config.vm.provision :shell, :inline => "usermod -a -G rkt ubuntu" | |
config.vm.synced_folder ".", "/rkt", type: "rsync", rsync__exclude: [".git/", "build-rir/"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment