Exposed dualstack argument on Docker

Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
simonmicro 2024-05-28 19:58:16 +02:00
parent a9b17ade20
commit b72e62820d
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6
3 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@
FROM alpine:3.15
ENV IP ::
ENV DUALSTACK 1
ENV PORT 1688
ENV EPID ""
ENV LCID 1033

View file

@ -5,6 +5,7 @@ ARG BUILD_COMMIT=unknown
ARG BUILD_BRANCH=unknown
ENV IP ::
ENV DUALSTACK 1
ENV PORT 1688
ENV EPID ""
ENV LCID 1033

View file

@ -45,6 +45,9 @@ def start_kms(logger):
for i in range(1, len(listen_ip)):
command.append("-n")
command.append(listen_ip[i] + "," + listen_port)
if dual := os.environ.get('DUALSTACK'):
command.append("-d")
command.append(dual)
logger.debug("server_cmd: %s" % (" ".join(str(x) for x in command).strip()))
pykms_process = subprocess.Popen(command)