Skip to content

Instantly share code, notes, and snippets.

@raphink
Created November 18, 2015 12:30
Show Gist options
  • Save raphink/d7721e1435036da94e52 to your computer and use it in GitHub Desktop.
Save raphink/d7721e1435036da94e52 to your computer and use it in GitHub Desktop.
Dockerized Puppetboard development pointing to distant PuppetDB container
FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild
CMD [ "wsgi.py" ]
$ grep PUPPETDB_HOST puppetboard/default_settings.py
PUPPETDB_HOST = 'puppetdb'
$ ssh -L <docker0_ip>:8080:<puppetdb_container_ip>:8080 <docker_host> -N
$ docker run -ti --rm -p 8000:80 --add-host puppetdb:<docker0_ip> -v $PWD:/app --name puppetboard puppetboard
from __future__ import absolute_import
import os
from puppetboard.app import app as application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment