跳转到主要内容

一个Python3工具,通过自动化重建流程的多个步骤来简化容器镜像的重建。

项目描述

Container Workflow Tool

Docker Repository on Quay

一个Python3工具,通过自动化重建流程的多个步骤来简化容器镜像的重建。

动机

实际的容器镜像重建包括多个步骤,这些步骤到目前为止都是手动完成的。其中一些步骤包括

  • 基于上游仓库进行变基
  • 检查变基所做的更改
  • 将更改推送到dist-git并运行构建

所有步骤目前都由 cwt(但仍需手动启动)自动化或半自动化处理。这应该有助于图像重建工作流程。

需求

  • python3
  • python3-GitPython
  • python3-requests-kerberos
  • fedpkg

选项

usage: cwt [options] command
    Command:
        koji            - List builds, base images, hash ids
        build           - Command for building images
        git             - Work with upstream/downstream git repositories
        utils           - Other actions tied to the rebuild (communication, repository preparation etc.)

    Options:
        -v, --verbosity      - Verbosity level, 1 (Critical only) - 5 (Debug messages), default 4 (Info)
        --base               - Specific base image release, required for some actions
        --clear-cache        - Clears tmp dir before running the command
        --latest-release     - Work with latest brew builds by release value
        --config             - Overrides default configuration file, expects the name of file a inside the config folder, optionally takes image_set argument
                               example usage: --config default.yaml:fedora27
        --do-image           - Use a custom set of images instead of all from the config (use dist-git names)
        --exclude-image      - Exclude an image from the list of images defined by config (use dist-git names)
        --do-set             - Use a specific set of images instead of all from the config (use dist-git names)
        --tmp                - Overrides default temporary working directory
        --disable-klist      - Disables getting kerberos token by klist

要获取特定命令的用法,您可以运行

cwt command --help

quay.io 仓库中的 container-workflow-tool

container-workflow-tool 一旦 master 分支合并更改,就会在 quay.io/rhscl/cwt-generator 中自动构建并推送。

测试

此存储库还包含用于检查 cwt 基本功能的 python unittest 框架的测试套件。您可以通过 Makefile 直接从存储库根目录运行这些测试。

make test

如果您不需要运行所有提供的测试用例,可以运行特定模块的子集,例如:

make test_distgit

如果您想在容器中运行所有测试用例,请按如下方式运行:

make test-in-container

项目详情


下载文件

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

源分布

container_workflow_tool-1.5.9.tar.gz (34.0 kB 查看哈希值

上传时间:

构建分布

container_workflow_tool-1.5.9-py3-none-any.whl (43.9 kB 查看哈希值

上传时间: Python 3

由以下赞助

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