aboutsummaryrefslogtreecommitdiffstats
path: root/checker/local.sh
diff options
context:
space:
mode:
Diffstat (limited to 'checker/local.sh')
-rw-r--r--checker/local.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/checker/local.sh b/checker/local.sh
new file mode 100644
index 0000000..90425c0
--- /dev/null
+++ b/checker/local.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ -z "$(docker ps | grep stldoctor-mongo)" ]; then
+ docker-compose up -d stldoctor-mongo
+fi
+
+export MONGO_ENABLED=1
+export MONGO_HOST=localhost
+export MONGO_PORT=27017
+export MONGO_USER=stldoctor_checker
+export MONGO_PASSWORD=stldoctor_checker
+
+python3 src/checker.py $@