Captain Hook is a webhook server running flask-gitea-webserver #blackbeard https://pages.charlesreid1.com/b-captain-hook
Charles Reid 5c7aefa312 print what is going on in rainbow mind machine gh-pages hook 3 months ago
docs shorten readme, organize docs 4 months ago
hooks print what is going on in rainbow mind machine gh-pages hook 3 months ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 4 months ago
.gitignore prepare for mkdocs 7 months ago
.gitmodules add mkdocs material git submodule 7 months ago
Dockerfile python2 -> python3 alpine 4 months ago
HOWTO.md update howto debugging with some ideas 7 months ago
LICENSE add original license 4 months ago
README.md shorten readme, organize docs 4 months ago
WARNING.md add all new branch 8 months ago
captain_hook.py print message instead of throwing 501 for GET method 3 months ago
config.example.json update config examples and fix whitelist ip exception 8 months ago
docker-compose.yml Change mount point for hooks - less confusing. 7 months ago
mkdocs.yml light touch 4 months ago
requirements.txt update requirements: flask and requests 4 months ago

README.md

b-captain-hook

Captain hook is a Python WSGI appication 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 standalone:

python captain_hook.py

Run 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