From 270137d9319faf13687b2779ebdfd74588d02b0e Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Sat, 7 Mar 2020 02:24:22 +0100 Subject: [PATCH] README: Local dev setup --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index d7facbd..70fedea 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,26 @@ pip install -r docs/requirements.txt python src/setup.py build_sphinx ``` +# Local dev setup + +The git repository contains a simple local setup for development + +```bash +# Create an overlay network to link the compose project and stack +docker network create --driver overlay --attachable global +# Start the compose project +docker-compose up -d +# Deploy the stack +docker stack deploy -c swarm-stack.yml test +``` + +In dev we should ideally start the backup container manually +```bash +docker-compose run --rm backup sh +# pip install the package in the container in editable mode to auto sync changes from host source +pip install -e . +``` + ## Contributing Contributions are welcome regardless of experience level. Don't hesitate submitting issues, opening partial or completed pull requests.