Packaging tool for Red Hat Ceph Storage product
Project description
A tool to package and build Red Hat Ceph Storage for Ubuntu.
rhcephpkg is a command-line tool similar to Red Hat’s “rpkg” family of tools, like fedpkg (open-source) or rhpkg (closed-source). In Red Hat we use this to package and build the RH Ceph Enterprise product for Ubuntu.
Configuration
$HOME/.rhcephpkg.conf should contain the following:
[rhcephpkg] user=kdreyer gitbaseurl = ssh://%(user)s@code.engineering.redhat.com/rcm/ceph-ubuntu/%(module)s anongiturl = git://git.app.eng.bos.redhat.com/rcm/ceph-ubuntu/%(module)s.git [rhcephpkg.jenkins] token=5d41402abc4b2a76b9719d911017c592 url=https://rcm-jenkins.app.eng.bos.redhat.com/ [rhcephpkg.chacra] url=https://ubuntu-ceph-test.brew.prod.eng.bos.redhat.com/
Substitute your settings:
user is your Red Hat Kerberos UID
token is your API token from Jenkins. To find this value, log into Jenkins’ Web UI (using your Kerberos username + password)
Commands
rhcephpkg clone - clone a “dist-git” repository. You must have a valid Kerberos ticket.
We use Git repositories with layouts that interoperate with Debian’s git-buildpackage suite of tools.
The clone operation uses kerberos for SSH authentication to the Git server. If you have not yet installed or configured Kerberos on your system, run sudo apt-get install krb5-user and set your realm to “REDHAT.COM”.
rhcephpkg build - Trigger a build in Jenkins.
rhcephpkg download - Download a build’s artifacts from chacra.
rhcephpkg hello - Test Jenkins authentication. Use this to verify your user and token settings.
rhcephpkg localbuild - Perform a local build using pbuilder.
rhcephpkg source - Build a source package on the local system.
Installing
Pre-built Ubuntu Trusty packages are available:
sudo apt-add-repository ppa:kdreyer-redhat/rhceph sudo apt-get update sudo apt-get install rhcephpkg
TODO
Replace the hacky argparsing with tambo
Add more commands, like rhcephpkg patch (equivalent of “rdopkg patch”, and runs “gbp pq export” under the hood)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.