famedly / hookd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hookd

A simple webhook daemon that supports multiple hooks, passing env vars and reading stdout/stderr. Similar to microhookd and webhook.

Installation

Use the package manager cargo to install hookd.

cargo install hookd

Usage

Create a config file in ~/.config/hookd/config.yaml based on the config.sample.yaml in this repo.

Healthcheck for Docker container

The service API implements the /health check for the Docker containers.

IMPORTANT: In order the Docker container to be able to perform the check, the image MUST provide the curl tool. If changing or updating the base image's version, please ensure the curl availability!

curl -s http://localhost:9320/health || exit 1

S. Dockerfile for details.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

AGPL-3.0-only

About

License:GNU Affero General Public License v3.0


Languages

Language:Rust 91.4%Language:Dockerfile 7.8%Language:Shell 0.8%