Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Aug 22, 2023
1 parent bc7d5df commit a467cc9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vagrant/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ set -e
export VAGRANT_CWD=$(pwd)/debian/
vagrant up && vagrant destroy -f

export VAGRANT_CWD=$(pwd)/rhel/
export VAGRANT_CWD=$(pwd)/rhel8/
vagrant up && vagrant destroy -f

export VAGRANT_CWD=$(pwd)/rhel9/
vagrant up && vagrant destroy -f
33 changes: 33 additions & 0 deletions vagrant/rhel9/Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "generic/alma9"
config.vm.box_check_update = false
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 2
libvirt.memory = 3500
libvirt.memorybacking :access, :mode => "shared"
end
config.vm.provision "shell", inline: <<-SHELL
set -xe
YUM="yum -yq"
$YUM install git rpm-build python3-setuptools
$YUM reinstall epel-release || true # epel-release is installed, but files removed
rm -rf virtnbdbackup;
git clone https://github.com/abbbi/virtnbdbackup -b dev
cd virtnbdbackup
set +x
python3.9 setup.py bdist_rpm --python /usr/bin/python3.9 --requires "python3-libvirt python3-libnbd python3-lxml python3-tqdm python3-lz4 nbdkit-server nbdkit-python-plugin python3-paramiko python3-typing-extensions"
cp dist/* /vagrant
yum install -y dist/*noarch*.rpm
virtnbdbackup -h
virtnbdrestore -h
virtnbdmap -h
SHELL
config.vm.synced_folder "../../dist", "/vagrant", type: "virtiofs"
end

0 comments on commit a467cc9

Please sign in to comment.