2024-09-01 09:16:33 +02:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
|
|
|
Vagrant.configure("2") do |config|
|
2024-09-19 16:59:44 +02:00
|
|
|
config.vm.box = "generic/centos8"
|
2024-09-01 09:16:33 +02:00
|
|
|
config.vm.synced_folder '.', '/vagrant/youki', disabled: false
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.memory = 4096
|
|
|
|
v.cpus = 4
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.provision "shell", privileged: false, inline: <<-SHELL
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
|
|
. "$HOME/.cargo/env"
|
|
|
|
sudo sed -i -e 's|^mirrorlist|#mirrorlist|g' -e 's|^#baseurl=http://mirror|baseurl=http://vault|g' /etc/yum.repos.d/CentOS-*repo
|
2024-09-19 16:59:44 +02:00
|
|
|
sudo yum -y install gcc curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker autoconf wget make
|
2024-09-01 09:16:33 +02:00
|
|
|
SHELL
|
|
|
|
end
|