CentOS CI配置器
项目描述
信息
红帽公司的社区平台工程团队正在对项目进行翻新,因此,通过标记其他分支过时来清理了此存储库
- 创建一个干净的分支用于开发
- 要查看在 CentOS CI 基础设施中部署的 Duffy 当前版本,请检查 stale/master 分支。
Duffy
Duffy 是运行 ci.centos.org 的中间层,它管理用于在 CI 集群中运行测试的节点(目前是物理硬件,即将推出虚拟机)的配置、维护和拆除/重建。
开发
安装
要安装 Duffy
克隆存储库并导航到项目目录。
- 设置并激活虚拟环境。
git clone https://github.com/CentOS/duffy.git cd duffy
- 使用原生虚拟环境
- 或者
python3 -m venv duffyenv source duffyenv/bin/activate
- 使用 Poetry 虚拟环境外壳
virtualenv duffyenv source duffyenv/bin/activate
- 使用 Poetry 安装
poetry shell
- 或者
- 运行 Duffy 服务器
poetry install
查看 CLI 使用方法
使用 IPv4 和设置日志级别为 trace
在端口 8080 上启动服务器
duffy --help
Usage: duffy [OPTIONS]
Duffy is the middle layer running ci.centos.org that manages the
provisioning, maintenance and teardown / rebuild of the Nodes (physical
hardware for now, VMs coming soon) that are used to run the tests in the CI
Cluster.
Options:
-p, --portnumb INTEGER Set the port value [0-65536]
-6, --ipv6 Start the server on an IPv6 address
-4, --ipv4 Start the server on an IPv4 address
-l, --loglevel [critical|error|warning|info|debug|trace]
Set the log level
--version Show the version and exit.
--help Show this message and exit.
使用 Ctrl
+ C
退出服务器
duffy -p 8000 -4 -l trace
* Starting Duffy...
* Port number : 8000
* IP version : 4
* Log level : trace
INFO: Started server process [104283]
INFO: Waiting for application startup.
TRACE: ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}}
TRACE: ASGI [1] Receive {'type': 'lifespan.startup'}
TRACE: ASGI [1] Send {'type': 'lifespan.startup.complete'}
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
项目详情
3.4.0rc2 预发布
下载文件
下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。
源分发
duffy-3.3.9.tar.gz (45.7 kB 查看哈希值)
构建分发
duffy-3.3.9-py3-none-any.whl (61.8 kB 查看哈希值)
关闭
duffy-3.3.9.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e4d90830f468a813251cc80710b7dbe88735532d1f424c91b60c2747f78c7bcc |
|
MD5 | 4ec0498565c4fe8b533ae2d893346360 |
|
BLAKE2b-256 | 8cae8bf94bd2599a5f0c2f5e2366a3d480418a8c47707acfcf27103c2fb8e5a2 |
关闭
duffy-3.3.9-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e4c32ef3aa8d6ee06605a175f0ea1c46844de882e1c008190e12eafed2efac4f |
|
MD5 | b5e16b94999f25805cd8365653ea6533 |
|
BLAKE2b-256 | 87f9c9dc9e4973d3b155728cfbc1bc20994326dd7a7c7df3e0dd78a8c259544c |