From 8984604d52cd9354897b48b783dfd8610c5c5758 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Tue, 26 Jun 2018 22:19:08 -0400 Subject: Productionalize with NGINX, towards https Change-Id: I0fcb79216cfc83d817a8d0ac4f3817d0aeea4e95 Issue-ID: DCAEGEN2-562 Signed-off-by: Tommy Carpenter --- README.md | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e430e22..a37303e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # config_binding_service -# Interface Diagram -This repo is the thing in red: - -![Alt text](doc/cbs_diagram.png?raw=true) +# Changelog +All changes are logged in Changelog.md # Overview @@ -45,6 +43,29 @@ X's configuration: } ``` +# A note about directory structure +This project uses https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/ +This is a solution that runs a productionalized setup using NGINX+uwsgi+Flask (Flask is not meant to be run as a real webserver per their docs). This project requires the app/app structure. Tox still works from the root due to tox magic. + +# Running + +## Locally (no docker) +It is recommended that you do this step in a virtualenv. +(set -x is Fish notaion, change for Bash etc. accordingly) +``` +pip install --ignore-installed .; set -x CONSUL_HOST ; ./main.py +``` + +## Docker +## building +``` +docker build -t config_binding_service:myversion . +``` +## running +``` +docker run -dt -p myextport:80 config_binding_service:myversion +``` + # Testing You need tox: ``` -- cgit 1.2.3-korg