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