diff options
author | Victor Näslund <victor@sunet.se> | 2022-11-18 09:58:18 +0100 |
---|---|---|
committer | Victor Näslund <victor@sunet.se> | 2022-11-18 09:58:18 +0100 |
commit | ee6da76d9e43b1de6533753811efba28abd25db4 (patch) | |
tree | 894f5e59515499bdd0ff03d2b55c6806f5a19ee2 | |
parent | 8abf52950f29f3f2f7690b3d4788f490b01a4263 (diff) |
updated run script
-rw-r--r-- | README.txt | 2 | ||||
-rwxr-xr-x | dev-run.sh | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..99e852a --- /dev/null +++ b/README.txt @@ -0,0 +1,2 @@ +# Deploy / Run / Test +bash dev-run.sh @@ -10,14 +10,22 @@ mypy --strict --namespace-packages --ignore-missing-imports --cache-dir=/tmp/ t black --line-length 120 tests/*.py # || exit 1 pylint --disable R0801 --max-line-length 120 tests/*.py # || exit 1 +# Stop the containers +docker-compose down --remove-orphans + +# Set data ownership mkdir -p data/mongodb_data sudo chown -R "$USER" data/mongodb_data + +# Build containers docker-compose -f docker-compose.yml build +# Set data ownership sudo chown -R 101 data/mongodb_data + +# Run and deploy containers docker-compose -f docker-compose.yml up -d sleep 3 echo "Running tests" python3 -m unittest - |