A Python-based CLI to analyze and maintain our containerised deployments.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Linus Sehn d088497c6b Add `reuse` badge 6 days ago
LICENSES Make `reuse` compliant 6 days ago
container_utils Make `reuse` compliant 6 days ago
tests Make `reuse` compliant 6 days ago
.drone.yml Fix `.drone.yml` 6 days ago
.gitignore add coverage to CI 3 months ago
.gitignore.license Make `reuse` compliant 6 days ago
README.md Add `reuse` badge 6 days ago
api.org add development files 3 months ago
api.org.license Make `reuse` compliant 6 days ago
coverage.svg increase test coverage; unify CLI 3 months ago
coverage.svg.license Make `reuse` compliant 6 days ago
flake.lock Switch to flake (and back to Python 3.9) 6 days ago
flake.lock.license Make `reuse` compliant 6 days ago
flake.nix Make `reuse` compliant 6 days ago
poetry.lock Switch to flake (and back to Python 3.9) 6 days ago
poetry.lock.license Make `reuse` compliant 6 days ago
pyproject.toml Make `reuse` compliant 6 days ago
renovate.json (renovate) Ignore `.txt` files 6 days ago
renovate.json.license Make `reuse` compliant 6 days ago
requirements.txt Make `reuse` compliant 6 days ago
shell.nix Make `reuse` compliant 6 days ago

README.md

Container Utilities

Build Status Coverage Code style: black REUSE status

The goal of this CLI tool is to simplify the regular analysis and maintenance of container deployments with Gitea and Drone.

Usage

There are two environment variables that you need to set in order to ensure proper operation of the tool. These are DRONE_TOKEN and GITEA_TOKEN. If you use direnv, simply create a file called .envrc in the repository with the following content:

export DRONE_TOKEN=***
export GITEA_TOKEN=***

Next, install the module and its dependencies by running poetry install. You can then access the command cu by running poetry run cu. If you do that you are presented with a help page that looks like this:

Usage: cu [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  analyse
  rebuild

Analysis

The analyse subcommand can be used as follows:

Usage: cu analyse [OPTIONS]

Options:
  -t, --topic TEXT  Specify topics (e.g. -t 'cont1-noris' -t cont2-noris)
                    [default: docker]
  --help            Show this message and exit.

Rebuilding

The rebuild subcommand can be used as follows:

Usage: cu rebuild [OPTIONS]

Options:
  -a, --all-repos
  -s, --slug TEXT    Specify repository slug (e.g. 'linus/dotfiles').
  -b, --branch TEXT  Specify repository target branch.  [default: default
                     branch of repository]
  -e, --event TEXT   Specify the event.  [default: push]
  -y, --no-confirm   Don't ask for confirmation.
  --help             Show this message and exit.