Red Hat Ceph Storage产品的打包工具
项目描述
用于打包和构建Ubuntu Red Hat Ceph Storage的工具。
rhcephpkg是一个类似于Red Hat的“rpkg”系列工具的命令行工具,如fedpkg(开源)或rhpkg(封闭源)。在Red Hat中,我们使用它来打包和构建RH Ceph Enterprise产品。
配置
$HOME/.rhcephpkg.conf应包含以下内容
[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 patchesbaseurl = ssh://%(user)s@code.engineering.redhat.com/%(module)s [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/
替换您的设置
user是您的Red Hat Kerberos UID
token是您的Jenkins API令牌。要查找此值,请使用Kerberos用户名和密码登录Jenkins Web UI
命令
rhcephpkg clone - 克隆“dist-git”仓库。您必须拥有有效的Kerberos票据。
我们使用与Debian的git-buildpackage工具集互操作的Git仓库布局。
克隆操作使用您的SSH密钥,该密钥必须在Gerrit中配置。
rhcephpkg build - 触发Jenkins中的构建。
rhcephpkg checkout-from-patches - 基于RHEL的rdopkg-风格的“patches”分支选择Debian分支。
rhcephpkg download - 从chacra下载构建的工件。
rhcephpkg hello - 测试Jenkins身份验证。请使用此命令验证您的user和token设置。
rhcephpkg gitbz - 验证最后Git提交消息中的每个RHBZ。
rhcephpkg list-builds - 列出chacra中某个软件包的构建列表。
rhcephpkg localbuild - 使用pbuilder执行本地构建。
rhcephpkg merge-patches - 从RHEL风格的“补丁”远程分支合并到Ubuntu的补丁队列分支。
rhcephpkg new-version - 导入软件包的新上游版本。
rhcephpkg patch - 将补丁队列分支应用到软件包上。
rhcephpkg source - 在本地系统上构建源代码包。
rhcephpkg watch-build - 监控Jenkins中的构建软件包作业。
安装
预构建的Ubuntu Xenial软件包可用
sudo apt-get update sudo apt-get -y install software-properties-common sudo apt-add-repository ppa:kdreyer-redhat/rhceph sudo apt-get update sudo apt-get install rhcephpkg
SSL验证
某些操作(如build)将联系使用红帽内部CA安全加密的Web服务。您必须在本地系统上信任此CA以避免SSL验证错误。以下是在Ubuntu上如何操作的示例
cd /usr/local/share/ca-certificates/ curl -O https://password.corp.redhat.com/RH-IT-Root-CA.crt update-ca-certificates
“RH-IT-Root-CA.crt”是签发Web服务器HTTPS证书的公共证书。
开发rhcephpkg
查看HACKING.rst以从Git直接运行rhcephpkg。
查看RELEASING.rst以了解发布新rhcephpkg版本的过程。
待办事项
rhcephpkg push - 执行git push origin --tags然后执行git push origin。这将在rebase期间帮助CI,以便Jenkins(通过Gerrit)仅在新的标签已经存在后才会拾取分支更改。
rhcephpkg dch - 根据我们的“redhat”版本号更改模式更新更改日志。这将有助于加快rebase的速度。
rhcephpkg amend - 修改最后一个Git提交,使提交消息与最后一个debian/changelog条目一致。这将与rdopkg amend类似(并且其中一些功能已经存在于rhcephpkg patch中)。
项目详情
rhcephpkg-1.13.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ecebcc2c4913655bff9c19565f80acff304ea741a84ef6064584052e2dbf5f95 |
|
MD5 | 16f3a3621651b26fc87876b904cf3315 |
|
BLAKE2b-256 | e518b7a7ca13ab86c70aef79411dc4532d8533e283979413449251a5e6cba841 |