diff options
author | Tommy Carpenter <tommy@research.att.com> | 2018-06-26 22:19:08 -0400 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2018-06-27 07:05:38 -0400 |
commit | 8984604d52cd9354897b48b783dfd8610c5c5758 (patch) | |
tree | 87f5eed6508545663c89723636c191d996bbc29f /README.md | |
parent | 7c12195918d37ef66658fe5c0565d73add60cfda (diff) |
Productionalize with NGINX, towards https
Change-Id: I0fcb79216cfc83d817a8d0ac4f3817d0aeea4e95
Issue-ID: DCAEGEN2-562
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -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 <YOUR_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: ``` |