一个Python3工具,通过自动化重建流程的多个步骤来简化容器镜像的重建。
项目描述
Container Workflow Tool
一个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.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 61435d86584a6d5fd5067448cd88b50f8d84f5360f3373a16cbd7d4178cb6f16 |
|
MD5 | e1f1c5f009020ca0d1b831f6eb938ea4 |
|
BLAKE2b-256 | 2070bc7664bdb62339a20653b629b6272480340d35c9a08c3fc128766f9870b0 |
关闭
container_workflow_tool-1.5.9-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 551753c984b23316a7376dbeba0d9d678e9c9977dfcc2b26ea884d98e84ab1d3 |
|
MD5 | 3c1538e166d696d0db43eb47d77da62c |
|
BLAKE2b-256 | 005773f6ba25a67f01e27d93da97004c11607b9204ec3ba01fbf08fb7c776abf |