Skip to main content

Continuous integration server/executor

Project description

Box Hatter is continuous integration server/executor. It provides isolated execution environments, for running automated actions, as containers managed by podman or docker.

Key features:

  • automated projects based on git repositories

  • containers as execution runners

  • per project configuration as YAML file inside project’s repository

  • web based control and monitoring interface (without JavaScript)

  • webhook/periodic execution triggering

  • CLI executor

Runtime requirements

  • python >=3.8

  • git

  • podman or docker

Install

$ pip install boxhatter

Running

Box Hatter enables execution of actions described by simple YAML files which contain container image name and Posix shell execution script. Actions files are stored as part of git repositories (default name of action file is .boxhatter.yaml, stored in root of git working tree).

These actions can be executed with:

$ boxhatter execute <path>

where <path> is path to git repository containing action definition. Referenced git repository can be local or remote.

Additionally, Box Hatter can be run as daemon providing web server interface:

$ boxhatter server

When run as server, Box Hatter periodically lists configured git repository references, and schedules action executions if new commits are available. New commit checking can also be triggered by webhooks available at listening /repo/<repo_name>/webhook URL path (<repo_name> is configured repository name).

Box Hatter server provides basic web GUI which can be used for monitoring action executions and scheduling new executions based on user provided git reference.

Action and server configurations are defined and documented by JSON schemas schemas_json/action.yaml and schemas_json/server.yaml.

For additional options, see:

$ boxhatter --help

Configuration example

  • .boxhatter.yaml

    image: alpine
    command: |
        echo "hello $WHO"
  • server.yaml

    repos:
        example:
            url: path/to/example/repository
            env:
                WHO: world

Build

Build tool used for Box Hatter is pydoit (http://pydoit.org). It can be installed together with other python dependencies by running:

$ pip install -r requirements.pip.dev.txt

For listing available doit tasks, use:

$ doit list

Default task:

$ doit

creates build folder containing Box Hatter distribution.

License

boxhatter - continuous integration server/executor

Copyright (C) 2017-2022 Bozo Kopic

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl (26.5 kB view details)

Uploaded CPython 3.10CPython 3.8CPython 3.9

File details

Details for the file boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl.

File metadata

  • Download URL: boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: CPython 3.10, CPython 3.8, CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.6

File hashes

Hashes for boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl
Algorithm Hash digest
SHA256 3eea6bb3148e9a3299c5ca4e669a83faab4246766a4becad44639edee9c59079
MD5 ce213f103a2871771f44abe5134ed7b5
BLAKE2b-256 11b8bfe6f516e9bd389524245aa04613fc1f073a37ff9bee2a81aab83dac27d0

See more details on using hashes here.

Supported by

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