From e8e05b687671d222a99e2b937077b364c6ed3649 Mon Sep 17 00:00:00 2001 From: Ashton Honnecke Date: Mon, 9 Sep 2019 09:24:40 -0600 Subject: [PATCH] split docker composes --- docker-compose.develop.yml | 19 +++++++++++++++++++ docker-compose.prod.yml | 8 ++++++++ docker-compose.yml | 1 + scripts/pytest.sh | 5 +++++ 4 files changed, 33 insertions(+) create mode 100644 docker-compose.develop.yml create mode 100644 docker-compose.prod.yml create mode 120000 docker-compose.yml create mode 100755 scripts/pytest.sh diff --git a/docker-compose.develop.yml b/docker-compose.develop.yml new file mode 100644 index 000000000..4dfdb9357 --- /dev/null +++ b/docker-compose.develop.yml @@ -0,0 +1,19 @@ +--- +version: '3' +services: + freqtrade_develop: + build: + context: . + dockerfile: "./Dockerfile" + volumes: + - ".:/freqtrade" + + pytest: + build: + context: . + dockerfile: "./Dockerfile.develop" + volumes: + - ".:/freqtrade" + command: + ["./scripts/pytest.sh"] + diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml new file mode 100644 index 000000000..cae98c3ee --- /dev/null +++ b/docker-compose.prod.yml @@ -0,0 +1,8 @@ +--- +version: '3' +services: + freqtrade: + image: freqtradeorg/freqtrade:master + volumes: + - "./user_data:/freqtrade/user_data" + - "./config.json:/freqtrade/config.json" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 120000 index 000000000..945318087 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1 @@ +docker-compose.prod.yml \ No newline at end of file diff --git a/scripts/pytest.sh b/scripts/pytest.sh new file mode 100755 index 000000000..e05ff1ad0 --- /dev/null +++ b/scripts/pytest.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Running Unit tests" + +pytest --random-order --cov=freqtrade --cov-config=.coveragerc freqtrade/tests/