Mkdocs dev server pulling from a remote Git repo, updates can be triggered via web hook.
886
This image autoamtically clones a configured Git repo, builds its documentation with mkdocs and serves the documentation via HTTP. Update of the source code from the Git repository and re-build of the documentation can be triggered via a web-hook (e.g. when code is pushed to GitHub or BitBucket).
Environment variables:
mkdocs.yml file is locatedContainer ports:
Example:
docker run --rm --name autodocs -p 8000:8000 -p 8001:8001 -e "PROJECT_GIT_URL=https://github.com/bwulff/autodocs-test.git" -e "PROJECT_GIT_BRANCH=master" -e "PROJECT_MKDOCS_DIR=." autodocs
You can trigger the update hook with a POST to the /update method with a valid token as parameter:
curl -X POST http://localhost:8001/update?token=test123
Content type
Image
Digest
Size
200.7 MB
Last updated
almost 9 years ago
docker pull bwulff/autodocs