enowars5-service-stldoctor

STL-Analyzing A/D Service for ENOWARS5 in 2021
git clone https://git.sinitax.com/sinitax/enowars5-service-stldoctor
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 98547be034d9f46c48f01e7d8633aa0b666332b1
parent 19d9a38484f1fcd9a05909186531ce401dcc94bb
Author: Louis Burda <quent.burda@gmail.com>
Date:   Thu,  8 Jul 2021 12:50:33 +0200

make ncat invocation easier to understand and fix listen port

Diffstat:
Mservice/Dockerfile | 2+-
Mservice/entrypoint.sh | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/service/Dockerfile b/service/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:18.04 -RUN apt update && apt install -y --no-install-recommends ncat gcc make libc6-dev libc6 libc-dev-bin +RUN apt update && apt install -y --no-install-recommends nmap gcc make libc6-dev libc6 libc-dev-bin RUN addgroup --system service RUN adduser --system --ingroup service --uid 1000 service diff --git a/service/entrypoint.sh b/service/entrypoint.sh @@ -11,5 +11,6 @@ while [ 1 ]; do sleep 70 done & -CMD="ncat -k -l -p 9090 -m 200 --no-shutdown -w10s -i180s -e /service/build/stldoctor" +CMD="ncat --keep-open --listen -p 9000 --max-conns 200 \ +--no-shutdown --wait 10s --idle-timeout 180s --exec /service/build/stldoctor" su -s /bin/sh -c "$CMD" service