repotesting-vagrant/rocky/Vagrantfile

36 lines
1.1 KiB
Ruby
Raw Normal View History

2023-05-20 19:09:53 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |rocky8u5|
# The custom/rocky8u5 was created from generic/centos8 and migrate2rocky.sh
rocky8u5.vm.box = "custom/rocky8u5"
rocky8u5.vm.hostname = "rocky8u5-repotesting.example.org"
rocky8u5.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
rocky8u5.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "4096"
vb.cpus = "2"
end
# Enable provisioning with a shell script. Additional provisioners such as
rocky8u5.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=extras,powertools update
SHELL
rocky8u5.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=epel,powertools install rpminspect rpminspect-data-fedora tree htop vim-enhanced
dnf -y install gcc make perl kernel-devel kernel-headers bzip2 dkms
cd /dev/shm
curl -LOR https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_6.1.29-148164.iso
mkdir -p /mnt/cdrom
mount -o loop /dev/shm/VBoxGuestAdditions_6.1.29-148164.iso /mnt/cdrom
cd /mnt/cdrom
./VBoxLinuxAdditions.run
modinfo vboxguest
modinfo vboxsf
SHELL
end