From dfaf6daec1b2e3daab865b7adfcf25cf8f186c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Fri, 24 Jun 2016 02:52:11 +0200 Subject: [PATCH] Add wsgi.py and Dockerfile (#187) * Add a sample wsgi.py * Add a sample Dockerfile making use of wsgi.py * Use 'puppetdb' as default location for PUPPETDB_HOST --- Dockerfile | 3 +++ puppetboard/default_settings.py | 2 +- wsgi.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 wsgi.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7c3c916 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM grahamdumpleton/mod-wsgi-docker:python-2.7-onbuild +CMD [ "wsgi.py" ] + diff --git a/puppetboard/default_settings.py b/puppetboard/default_settings.py index 595e690..d5f3bc9 100644 --- a/puppetboard/default_settings.py +++ b/puppetboard/default_settings.py @@ -1,6 +1,6 @@ import os -PUPPETDB_HOST = 'localhost' +PUPPETDB_HOST = 'puppetdb' PUPPETDB_PORT = 8080 PUPPETDB_SSL_VERIFY = True PUPPETDB_KEY = None diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..07e8b2d --- /dev/null +++ b/wsgi.py @@ -0,0 +1,3 @@ +from __future__ import absolute_import +import os +from puppetboard.app import app as application