-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,17 @@ long_description = Backup utility for libvirt, using latest changed block tracki | |
release = 1 | ||
packager = Michael Ablassmeier <[email protected]> | ||
doc_files = README.md Changelog LICENSE | ||
requires = python3-libvirt python3-libnbd python3-lxml python3-tqdm python3-lz4 nbdkit-server nbdkit-python-plugin python3-dataclasses python3-paramiko python3-typing-extensions | ||
|
||
# for rhel9 and above, requires must be passed | ||
# via --requires cmd to skip python3-dataclasses | ||
requires = | ||
python3-libvirt | ||
python3-libnbd | ||
python3-lxml | ||
python3-tqdm | ||
python3-lz4 | ||
nbdkit-server | ||
nbdkit-python-plugin | ||
python3-dataclasses | ||
python3-paramiko | ||
python3-typing-extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 |