Skip to main content

A python3 tool to make rebuilding images easier by automating several steps of the process.

Project description

Container Workflow Tool

Docker Repository on Quay

A python3 tool to make rebuilding container images easier by automating several steps of the process.

Motivation

The actual rebuild of container images consists of several steps that have been so far done manually. Some of these steps are:

  • Rebase against upstream repository
  • Check the changes made by the rebase
  • Push the changes into dist-git and run the build

All of the steps are currently automated or semi-automated by cwt (but still need to be manually started). This should help a bit with the image rebuild workflow.

Requirements

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

Options

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

To get the usage of a specific command, you can run:

cwt command --help

container-workflow-tool in the quay.io registry

container-workflow-tool is automatically built and pushed in quay.io/rhscl/cwt-generator as soon as changes are merged into master branch.

Test

This repository also contains test suites for python's unittest framework that check the basic functionality of cwt. These test can be run directly from the repository's root via Makefile:

make test

If you do not need to run all of the test cases provided you can run a module-specific subset like this:

make test_distgit

If you want to run all the test cases in container, run it like this:

make test-in-container

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

container-workflow-tool-1.5.1.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

container_workflow_tool-1.5.1-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file container-workflow-tool-1.5.1.tar.gz.

File metadata

File hashes

Hashes for container-workflow-tool-1.5.1.tar.gz
Algorithm Hash digest
SHA256 4be2b9ed259cd0c53f14f6e120629865678a22c1b0c5bac58e4ae3d69677357b
MD5 4c577d63949df17f04685a152b723663
BLAKE2b-256 de71540d52ea91af0832c9b494e9a9cbd8d3a332d5735fb62feedca56161f736

See more details on using hashes here.

File details

Details for the file container_workflow_tool-1.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for container_workflow_tool-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4bddd0b4be90be6febcce9ef54c28a33b4690087ed1a76ca719c76d32d0d795c
MD5 b9f7ece72185dcc56f6bc5a2f9d43a8f
BLAKE2b-256 900e10768f53c729c9d6f02bc7c0a9ddc7cc37cb9521036926a3fd1a5b306860

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page