repotesting-vagrant/centos/Vagrantfile

37 lines
1001 B
Ruby
Raw Permalink Normal View History

2023-05-20 19:09:53 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/centos8"
config.vm.hostname = "centos8u5-repotesting.example.org"
config.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
vb.cpus = "2"
end
config.vm.provision "shell", inline: <<-SHELL
dnf -y clean all
dnf -y update
SHELL
config.vm.provision :reload
config.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=epel,powertools install rpminspect rpminspect-data-centos 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.31-148488.iso
mkdir -p /mnt/cdrom
mount -o loop /dev/shm/VBoxGuestAdditions_6.1.31-148488.iso
cd /mnt/cdrom
./VBoxLinuxAdditions.run
modinfo vboxguest
modinfo vboxsf
SHELL
end