跳转到主要内容

Red Hat Ceph Storage产品的打包工具

项目描述

https://travis-ci.org/red-hat-storage/rhcephpkg.svg?branch=master https://badge.fury.io/py/rhcephpkg.svg

用于打包和构建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身份验证。请使用此命令验证您的usertoken设置。

  • 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 (31.2 kB 查看哈希值)

由...

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面