Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Ganeti RPM Packaging

Ganeti RPM Packaging for RHEL/CentOS/Scientific Linux and Fedora.

Packaging status

Documentation

YUM repository and binary RPM files

Building RPM Packages with Docker

You can build RPM packages in Docker.

docker build -t ganeti-rpmbuild-centos7 -f docker/Dockerfile.centos7 .

# pull the latest base image + no cache
docker build -t ganeti-rpmbuild-centos7 -f docker/Dockerfile.centos7 . --pull=true --no-cache

Run the container with bash:

BUILD_HOSTNAME=ganeti-rpm-build.integ.jp
docker run -h ${BUILD_HOSTNAME} --rm -it -v $PWD:/pkg ganeti-rpmbuild-centos7 bash
cd /pkg

Run build command in the container

Uninstall, clean, and build all packages, and install:

./package.sh -ucia

Uninstall and clean all packages, and build ganeti dependencies packages only, and install:

./package.sh -ucid

Uninstall and clean all packages, and build the specified package(s) only, and install:

./package.sh -ucip PACKAGE

Build all packages with no overwrite and install:

./package.sh -o no -ia

Build the new ganeti RPM package version using the already released dependency libraries and install:

yum install http://jfut.integ.jp/linux/ganeti/7/x86_64/integ-ganeti-release-7-2.el7.noarch.rpm
yum-config-manager --enable integ-ganeti
./package.sh -ip ganeti

List ghc dependencies in target packages

./package.sh -ucid
./package.sh -l

Signing RPM Packages

Run the container with bash:

BUILD_HOSTNAME=ganeti-rpm-build.integ.jp
docker run -h ${BUILD_HOSTNAME} --rm -it -v $PWD:/pkg -v ~/.gnupg:/root/.gnupg ganeti-rpmbuild-centos7 bash
cd /pkg

# Set your gpg name
echo "%_gpg_name jfut-rpm@integ.jp" >> ~/.rpmmacros

Sign all packages:

./package.sh -sa

Sign the specified package(s) only:

./package.sh -sp PACAKGE

Other Ganeti resources

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request