跳转到主要内容

CentOS CI配置器

项目描述

信息

红帽公司的社区平台工程团队正在对项目进行翻新,因此,通过标记其他分支过时来清理了此存储库

  • 创建一个干净的分支用于开发
  • 要查看在 CentOS CI 基础设施中部署的 Duffy 当前版本,请检查 stale/master 分支。

Duffy

Duffy 是运行 ci.centos.org 的中间层,它管理用于在 CI 集群中运行测试的节点(目前是物理硬件,即将推出虚拟机)的配置、维护和拆除/重建。

开发

安装

要安装 Duffy

克隆存储库并导航到项目目录。

  1. 设置并激活虚拟环境。
    git clone https://github.com/CentOS/duffy.git
    cd duffy
    
  2. 使用原生虚拟环境
    • 或者
      python3 -m venv duffyenv
      source duffyenv/bin/activate
      
    使用 virtualenv 包装器
    • 使用 Poetry 虚拟环境外壳
      virtualenv duffyenv
      source duffyenv/bin/activate
      
    使用 virtualenv 包装器
    • 使用 Poetry 安装
      poetry shell
      
  3. 运行 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)

项目详情

发布历史 发布通知 | RSS 源


下载文件

下载适合您平台的文件。如果您不确定要选择哪个,请了解更多关于 安装包 的信息。

源分发

duffy-3.3.9.tar.gz (45.7 kB 查看哈希值)

上传时间

构建分发

duffy-3.3.9-py3-none-any.whl (61.8 kB 查看哈希值)

上传时间 Python 3

支持者