aboutsummaryrefslogtreecommitdiffstats
path: root/do.sh
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-07-09 02:21:28 +0200
committerLouis Burda <quent.burda@gmail.com>2021-07-09 02:21:28 +0200
commitbc05a77222267eeb4fdc6229d2f34c883ba7c056 (patch)
treee1f88d72d3f1aea90f58c0fab755aebf3f526b8a /do.sh
parent3d0e670b1c6d24036007c6e4d3419468170eb6c3 (diff)
downloadenowars5-service-stldoctor-bc05a77222267eeb4fdc6229d2f34c883ba7c056.tar.gz
enowars5-service-stldoctor-bc05a77222267eeb4fdc6229d2f34c883ba7c056.zip
moved local check start out of checker folder, merged havocids into fakeid and created extra type of id which is only lower alphanumeric
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"