Using Mock with Ceph in Storage SIG
Install the latest Ceph "release" package to enable the Yum repos:
# yum -y install centos-release-ceph-nautilus
Now you can install the mock configuration files for Ceph (currently in -nautilus-test):
# yum --enablerepo=centos-ceph-nautilus-test install mock-ceph-config
Lastly, install the mock package and add your local user account to the mock group:
yum install mock usermod -a -G mock kdreyer
Log out and log back in to ensure that you're in the mock group (or use the newgrp command to ensure you have the mock group set on your current login session).
1. How do I use this?
To rebuild a SRPM for nautilus, specify the mock configuration with "-r":
mock -r storage7-ceph-nautilus-el7-x86_64 path/to/ceph-ansible-3.2.0-1.el7.src.rpm
This will build your SRPM in the nautilus buildroot and print the paths to your binary RPMs at the end.
2. What is mock?
Mock is a tool for building packages. It builds RPMs in a minimal chroot. It is similar to Debian's pbuilder.
3. Why use mock?
When you use mock to build RPMs locally, you can have a high degree of confidence that your build artifacts will match the build in the official build system, CentOS' CBS (Koji).