Captain Hook is a webhook server for running scripts via webhooks from Github or Gitea. Powered by Flask. https://pages.charlesreid1.com/b-captain-hook
Charles Reid 22151c99e2 modify logging err 2 months ago
docs update docs, fix typos, flesh out 2 months ago
hooks clean up logging in hook script 3 months ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 10 months ago
.gitignore prepare for mkdocs 1 year ago
.gitmodules add mkdocs material git submodule 1 year ago
Dockerfile python2 -> python3 alpine 11 months ago
HOWTO.md update howto debugging with some ideas 1 year ago
LICENSE add original license 11 months ago
README.md update docs, fix typos, flesh out 2 months ago
WARNING.md add all new branch 1 year ago
captain_hook.py modify logging err 2 months ago
config.example.json update config examples and fix whitelist ip exception 1 year ago
docker-compose.yml Change mount point for hooks - less confusing. 1 year ago
mkdocs.yml amber not orange 2 months ago
requirements.txt update requirements: flask and requests 11 months ago

README.md

b-captain-hook

Captain hook is a Python WSGI application that handles webhooks from gitea and github.

Captain Hook documentation: https://pages.charlesreid1.com/b-captain-hook

Browse the documentation locally: docs/index.md

Captain Hook source code: https://git.charlesreid1.com/bots/b-captain-hook

Captain Hook on Github: https://github.com/charlesreid1-docker/captain-hook

git clone https://git.charlesreid1.com/bots/b-captain-hook.git
cd b-captain-hook
pip install -r requirements.txt
cp config.example.json config.json
# edit config.json

Run it standalone:

python captain_hook.py

Run it with docker:

docker-compose build
docker-compose up -d
docker-compose down

Licenses

See LICENSE

Credits

This project is just the reinterpretation and merge of two approaches:

github-webhook-wrapper

flask-github-webhook

It is implemented with the help of python 3 alpine:

nikos/python3-alpine-flask-docker