aboutsummaryrefslogtreecommitdiffstats
path: root/do.sh
diff options
context:
space:
mode:
Diffstat (limited to 'do.sh')
-rw-r--r--do.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/do.sh b/do.sh
index ef0ca01..a6267ba 100644
--- a/do.sh
+++ b/do.sh
@@ -87,6 +87,20 @@ elif [ "$1" == "ci-test" ]; then
elif [ "$1" == "host-socat" ]; then
RESULTDIR=service/data/uploads socat -x -v -T180 -s TCP-LISTEN:9090,nodelay,reuseaddr,fork \
EXEC:./run-proxy.sh,raw,pty,echo=0,stderr
+elif [ "$1" == "checker-local" ]; then
+ cd checker
+ if [ -z "$(docker ps | grep stldoctor-mongo)" ]; then
+ docker-compose down -v
+ 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 -u src/checker.py $@
elif [ "$1" == "host-ncat" ]; then
RESULTDIR=service/data/uploads ncat -v -k -l -p 9090 \
-m 200 --no-shutdown -w10s -i180s -c "./run-proxy.sh"