summaryrefslogtreecommitdiff
path: root/dev-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dev-run.sh')
-rwxr-xr-xdev-run.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-run.sh b/dev-run.sh
index 2d7f780..7fb3699 100755
--- a/dev-run.sh
+++ b/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
-