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
6d8727
* c8-sig-storage-ceph-octopus: 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)
1df00c
* [SIGGuide](https://wiki.centos.org/SIGGuide#SIGGuide.2FContent.2FImport.Pushing_first_to_lookaside_cache)
6d8727
1df00c
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
1df00c
Get the lookaside uploader script from ssh://git@git.centos.org/centos-git-common.git
1df00c
6d8727
To build:
6d8727
1df00c
1. Upload the source tar file to the lookaside cache, e.g.:
dc518a
    $ lookaside_upload -f SOURCES/ceph-15.2.15.tar.gz -n ceph -b c8-sig-storage-ceph-octopus
1df00c
1df00c
2. update the .glusterfs.metadata with the hash from step 1:
1df00c
    $ cat .ceph.metadata
dc518a
e9c6a6a482b8e46117c2a6c37b50c569bd62d92e  SOURCES/ceph-15.2.15.tar.gz
1df00c
1df00c
3. commit and push SPECS/ceph.spec and .ceph.metadata, e.g.:
1df00c
    $ git add SPECS/ceph.spec .ceph.metadata
1df00c
    $ git push origin c8-sig-storage-ceph-octopus
1df00c
1df00c
4. retrieve the commit for step 3:
1df00c
    $ git log|head -n 1
1df00c
commit 29f19456be12986e86392652331e3a56ff0a88a0
1df00c
1df00c
5. build
1df00c
    $ cbs build storage8-ceph-octopus-el8 git+https://git.centos.org/rpms/ceph.git#29f19456be12986e86392652331e3a56ff0a88a0
1df00c
1df00c
1df00c
dc518a
    $ cbs build [--scratch] storage8-ceph-octopus-el8 ceph-15.2.15-1.el8.src.rpm
6d8727