diff options
| author | 2018-05-22 22:12:43 +0200 | |
|---|---|---|
| committer | 2018-05-22 22:12:43 +0200 | |
| commit | f689ce549689b3192ce1f7510804495acfd7869d (patch) | |
| tree | 56ac7af58d1b9a8ea59a943e711e337a10220cdd /README.md | |
| parent | Delete test.py (diff) | |
adds webapp and docker-compose for more proof of concept
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 36 |
1 files changed, 28 insertions, 8 deletions
@@ -3,20 +3,20 @@ Python sandbox runners for executing code in isolation # Dependencies -| dep | version (or greater) | -|--------|----------------------| -| python | 3.6.5 | -| pip | 10.0.1 | -| pipenv | 2018.05.18 | -| docker | 18.03.1-ce | - +| dep | version (or greater) | +|----------------|:---------------------| +| python | 3.6.5 | +| pip | 10.0.1 | +| pipenv | 2018.05.18 | +| docker | 18.03.1-ce | +| docker-compose | 1.21.2 | ## Setup local test install python packages ```bash -pipenv sync +pipenv sync --dev ``` Start a rabbitmq instance and get the container IP @@ -55,3 +55,23 @@ docker logs snekbox -f #terminal 2 pipenv run python runner/publish.py ``` + +## Docker compose + +Start both rabbitmq and a consumer with docker-compose + +```bash +docker-compose up +``` + +## Try the webapp + +After getting docker-compose to run the rabbitmq server and the consumer + +try running the webapp in another terminal + +```bash +pipenv run python webapp/webapp.py +``` + +and then open up the page: http://localhost:5000 (or whatever address it's running on) |