Wiki
Move to gollum Filter everything except GET at haproxy with the appropriate acl Run gollum with –no-edit Sync from github from another container, shared volume with https://github.com/bloomberg/python-github-webhook , read-only for gollum Set the secret from an env var in ansible, write to file, mount file in container, read file from the webhook main createdroplet -t permanent -t wiki -i centos-7-x64 -r lon1 -n wiki-lon1 Make github-webhook pull whatever it's given down to /repos/<reponame>.
Push the github-webhook container to docker hub. github-webhook-pull-master or someshit. Deploy priv key mounted at /etc/id_github_deploy - get contents from ansible env Gollum-in-docker here https://github.com/gollum/gollum/wiki/Gollum-via-Docker Mount /repos/<wiki> as /wiki in the gollum container and serve the wiki dir in there.
flask six
if data["ref"] == "refs/heads/master":
repo = data["repository"]["name"]
url = data["clone_url"]
if not os.path.isdir("/repos/" + repo + "/.git"):
subprocess.run(['/usr/bin/git', 'clone', url, "/repos/" + repo])
else:
subprocess.run(['/usr/bin/git', 'pull'], cwd="/repos/" + repo)