-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
26 lines (21 loc) · 1.09 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Vagrant.configure("2") do |c|
c.ssh.insert_key = false
c.vm.define 'centos' do |v|
v.vm.hostname = 'centos.test.net'
v.vm.box = 'centos/8'
v.vm.box_check_update = 'false'
v.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '6144', '--cpus', '2']
end
v.vm.synced_folder './', '/vagrant', type: 'rsync',
rsync__auto: true
v.vm.provision 'shell', inline: 'yum -y install podman buildah git slirp4netns'
v.vm.provision 'shell', inline: 'yum -y update'
v.vm.provision 'shell', inline: 'echo 10000 > /proc/sys/user/max_user_namespaces'
v.vm.provision 'shell', inline: 'echo "vagrant:100000:65536" >> /etc/subuid'
v.vm.provision 'shell', inline: 'echo "vagrant:100000:65536" >> /etc/subgid'
# Install RVM for development
v.vm.provision 'shell', inline: 'runuser vagrant -l -c "gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB"'
v.vm.provision 'shell', inline: 'runuser vagrant -l -c "curl -sSL https://get.rvm.io | bash"'
end
end