Ganeti RPM Packaging for RHEL/AlmaLinux/Rocky Linux/others.
- RHEL/AlmaLinux/Rocky Linux/others 10.x: 3.1.0-1
- RHEL/AlmaLinux/Rocky Linux/others 9.x: 3.1.0-1
- RHEL/AlmaLinux/Rocky Linux/others 8.x: 3.1.0-1
- https://jfut.integ.jp/linux/ganeti/
- https://ftp.osuosl.org/pub/ganeti-rpm/ (mirror, thanks to the OSU Open Source Lab)
Support for CentOS 5, 6, 7 has ended, but older version packages can still be downloaded.
You can build RPM packages in Docker.
# AlmaLinux 10
./build almalinux:10
# or ./build rockylinux:10
# AlmaLinux 9
./build almalinux:9
# or ./build rockylinux:9
# AlmaLinux 8
./build almalinux:8
# or ./build rockylinux:8
Debug and manual mode:
# AlmaLinux 10
BUILD_HOSTNAME=el10.example.org ./build -d almalinux:10
# or ./build -d rockylinux:10
# AlmaLinux 9
BUILD_HOSTNAME=el9.example.org ./build -d almalinux:9
# or ./build -d rockylinux:9
# AlmaLinux 8
BUILD_HOSTNAME=el8.example.org ./build -d almalinux:8
# or ./build -d rockylinux:8
# Setup
cd /pkg
./setup
# Build
./build-rpm ...
Run on host.
Usage:
build [-d] BUILD_IMAGE_NAME:BUILD_IMAGE_TAG [BUILD_RPM_OPTIONS]
Options:
-d Debug mode
BUILD_RPM_OPTIONS
build-rpm options (default: -a -bi -o yes)
Environment variables:
BUILD_HOSTNAME: container host name
Build for AlmaLinux 10:
build almalinux:10
Build for AlmaLinux 9:
build almalinux:9
Build for AlmaLinux 8:
build almalinux:8
Run in a container.
RPM_DIST: .el10 (/usr/lib/rpm/macros.d/macros.dist)
Usage:
build-rpm [-a|-d|-p] [-c|-C] [-b] [-s] [-i] [-u] [-o yes|no] [package...]
Target Options:
-a all packages (ganeti and its dependencies and integ-ganeti repo)
-d ganeti dependencies packages only
-p the specified package(s) only. Available packages are:
ganeti dependencies:
dump python-bitarray python-pyasyncore
ganeti:
ganeti ganeti-instance-debootstrap
integ-ganeti-repo:
integ-ganeti-release-10 integ-ganeti-release-9 integ-ganeti-release-8
Task Options:
-c Clean clean the rpmbuild directory, but preserve downloaded archives
-C Completely clean the rpmbuild directory
-b Build packages
-o Overwrite built package: yes|no (Default: manual)
-s Sign built packages
-i Install built packages
-u Uninstall installed packages
Task Execution Order:
Uninstall -> Clean -> Build -> Sign -> Install
If the build (-b) and install (-i) options are specified at the same time,
the installation will be done immediately after the individual packages are built.
This is to resolve dependencies needed to build the next package.
All packages + uninstall, clean, build, and install:
./build-rpm -a -ucbi
Ganeti dependencies packages + uninstall, clean, build, and install:
./build-rpm -d -ucbi
The specified package(s) + uninstall, clean, build, and install:
./build-rpm -p -ucbi PACKAGE
Build all packages with no overwrite and install:
./build-rpm -a -bi -o no
Build the new ganeti RPM package version using the already released dependency libraries and install:
# AlmaLinux 10 or Rocky Linux 10
dnf install https://jfut.integ.jp/linux/ganeti/10/x86_64/integ-ganeti-release-10-1.el10.noarch.rpm
dnf config-manager --enable integ-ganeti
./build-rpm -p -bi ganeti
# AlmaLinux 9 or Rocky Linux 9
dnf install https://jfut.integ.jp/linux/ganeti/9/x86_64/integ-ganeti-release-9-1.el9.noarch.rpm
dnf config-manager --enable integ-ganeti
./build-rpm -p -bi ganeti
# AlmaLinux 8 or Rocky Linux 8
dnf install https://jfut.integ.jp/linux/ganeti/8/x86_64/integ-ganeti-release-8-1.el8.noarch.rpm
dnf config-manager --enable integ-ganeti
./build-rpm -p -bi ganeti
Run the container with bash:
# AlmaLinux 10
BUILD_HOSTNAME=almalinux-10.github.integ.jp
docker run -h "${BUILD_HOSTNAME}" --rm -it -v $PWD:/pkg -v ~/.gnupg.el10:/root/.gnupg almalinux:10 bash
# AlmaLinux 9
BUILD_HOSTNAME=almalinux-9.github.integ.jp
docker run -h "${BUILD_HOSTNAME}" --rm -it -v $PWD:/pkg -v ~/.gnupg.el9:/root/.gnupg almalinux:9 bash
# AlmaLinux 8
BUILD_HOSTNAME=almalinux-8.github.integ.jp
docker run -h "${BUILD_HOSTNAME}" --rm -it -v $PWD:/pkg -v ~/.gnupg.el8:/root/.gnupg almalinux:8 bash
# Setup
dnf -y install findutils gnupg2 rpm-sign pinentry
# Set your gpg name
echo "%_gpg_name jfut-rpm@integ.jp" >> ~/.rpmmacros
Sign all packages:
cd /pkg
./build-rpm -a -s
Sign the specified package(s) only:
./build-rpm -p -s PACAKGE
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- Edit the
Draft
on the release page. - Update the new version
name
andtag
on the edit page. - Check
Set as a pre-release
and press thePublish release
button. - Wait for the build by GitHub Actions to finish.
- If the build fails due to errors such as download errors of source files, execute
Re-run failed jobs
.
- If the build fails due to errors such as download errors of source files, execute
- Once all release files are automatically uploaded, check
Set as the latest release
and press thePublish release
button.