Skip to main content

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/>.

Release files for boxhatter 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for boxhatter 0.2.6
File Interpreter ABI Platform
boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl CPython 3.8, CPython 3.10, CPython 3.9 none any Details

Release files / boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl

Download URL boxhatter-0.2.6-cp38.cp39.cp310-none-any.whl
Size 26.5 kB
Tags CPython 3.10 CPython 3.8 CPython 3.9
SHA-256 checksum
How to use checksums
3eea6bb3148e9a3299c5ca4e669a83faab4246766a4becad44639edee9c59079
BLAKE2b-256 checksum
How to use checksums
11b8bfe6f516e9bd389524245aa04613fc1f073a37ff9bee2a81aab83dac27d0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.6 This release

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page