aboutsummaryrefslogtreecommitdiffstats
path: root/checker/local.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-06-30 22:52:52 +0200
committerLouis Burda <quent.burda@gmail.com>2021-06-30 22:52:52 +0200
commit7501a1d6c20581312eb37de883ab52e83e27c8fa (patch)
tree5d95b121903394f6674aaece729a876fa3b8367f /checker/local.sh
parent0a00d31fa19062511e1208d1c037787476497e2f (diff)
downloadenowars5-service-stldoctor-7501a1d6c20581312eb37de883ab52e83e27c8fa.tar.gz
enowars5-service-stldoctor-7501a1d6c20581312eb37de883ab52e83e27c8fa.zip
refactor for enochecker3
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 $@