Created
November 18, 2015 12:30
-
-
Save raphink/d7721e1435036da94e52 to your computer and use it in GitHub Desktop.
Dockerized Puppetboard development pointing to distant PuppetDB container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild | |
CMD [ "wsgi.py" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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