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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid 361f59c21a update warning a lil bit 5 months ago
docs update docs, fix typos, flesh out 8 months ago
hooks clean up logging in hook script 9 months ago
mkdocs-material @ b0c6890853 Update mkdocs-material for mkdocs 1.0 1 year ago
.gitignore prepare for mkdocs 1 year ago
.gitmodules add mkdocs material git submodule 1 year ago
Dockerfile python2 -> python3 alpine 1 year ago
HOWTO.md update howto debugging with some ideas 1 year ago
LICENSE add original license 1 year ago
README.md update docs, fix typos, flesh out 8 months ago
WARNING.md update warning a lil bit 5 months ago
captain_hook.py Merge branch 'master' of github.com:charlesreid1/b-captain-hook into HEAD 5 months ago
config.example.json add config template, update example template, remove return_script_info option 5 months ago
config.json.j2 add config template, update example template, remove return_script_info option 5 months ago
docker-compose.yml Change mount point for hooks - less confusing. 1 year ago
mkdocs.yml amber not orange 8 months ago
requirements.txt update requirements: flask and requests 1 year 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