mirror of
https://github.com/rkt/rkt.git
synced 2026-03-13 09:40:21 +08:00
Currently to get started with rkt we recommend using "vagrant up". This tries to build rkt inside a virtual machine. This cleans up the install-vagrant.sh script to use a released version of rkt instead. It also removes scripts not being used any more. Fixes #2789
20 lines
791 B
Ruby
20 lines
791 B
Ruby
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", "1024"]
|
|
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"
|
|
end
|