6d8727
This is a dist-git like repo for Ceph
6d8727
6d8727
The master brach is unused. Use an existing branch instead.
6d8727
Branch names follow convention like `c<VERSION>-sig-storage-ceph-VERSION>`
6d8727
as descibed on [Naming and Patterns for Mapping Git Branches to Koji Tags]
6d8727
(https://wiki.centos.org/BrianStinson/GitBranchesandKojiTags)
6d8727
fefe1d
* c8-sig-storage-ceph-nautilus: CentOS-8
6d8727
* ...
6d8727
6d8727
Instructions for building the ceph package for the CentOS Storage SIG
6d8727
can be found in the following places:
6d8727
6d8727
* [Comunity Build System](https://wiki.centos.org/HowTos/CommunityBuildSystem)
6d8727
* [Storage SIG landing page](https://wiki.centos.org/SpecialInterestGroup/Storage/Gluster)
9814c7
* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache)
6d8727
9814c7
E.g. build a src.rpm with:
6d8727
    $ rpmbuild -bs \
6d8727
               --define "_sourcedir $PWD/SOURCES" --define "_srcrpmdir $PWD" \
6d8727
               --define "dist .el8" SPECS/ceph.spec
6d8727
9814c7
Get the lookaside uploader script from ssh://git@git.centos.org/centos-git-common.git
9814c7
6d8727
To build:
6d8727
9814c7
1. Upload the source tar file to the lookaside cache, e.g.:
9814c7
    $ lookaside_upload -f SOURCES/ceph-14.2.22.tar.gz -n ceph -b c8-sig-storage-ceph-nautilus
9814c7
9814c7
2. update the .glusterfs.metadata with the hash from step 1:
9814c7
    $ cat .ceph.metadata
9814c7
e9c6a6a482b8e46117c2a6c37b50c569bd62d92e  SOURCES/ceph-14.2.22.tar.gz
9814c7
9814c7
3. commit and push SPECS/ceph.spec and .ceph.metadata, e.g.:
9814c7
    $ git add SPECS/ceph.spec .ceph.metadata
9814c7
    $ git push origin c8-sig-storage-ceph-nautilus
9814c7
9814c7
4. retrieve the commit for step 3:
9814c7
    $ git log|head -n 1
9814c7
commit 29f19456be12986e86392652331e3a56ff0a88a0
9814c7
9814c7
5. build
9814c7
    $ cbs build storage8-ceph-nautilus-el8 git+https://git.centos.org/rpms/ceph.git#29f19456be12986e86392652331e3a56ff0a88a0
9814c7
9814c7
6d8727
9814c7
    $ cbs build --scratch storage8-ceph-nautilus-el8 ceph-14.2.22-1.el8.src.rpm
6d8727