add 8u6 Vagrantfiles

This commit is contained in:
Trevor Cooper 2023-05-20 12:11:24 -07:00
parent 5af819724f
commit 5a197ad6c9
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

36
rocky/Vagrantfile vendored Normal file
View File

@ -0,0 +1,36 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |rocky8u6|
# NOTE: custom/rocky8u6 is a custom packer built vagrant box
rocky8u6.vm.box = "custom/rocky8u6"
rocky8u6.vm.hostname = "rocky8u6-repotesting.example.org"
rocky8u6.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
rocky8u6.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
rocky8u6.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=extras,powertools update
SHELL
rocky8u6.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