Skip to content

Commit b72e628

Browse files
committed
Exposed dualstack argument on Docker
Signed-off-by: simonmicro <simon@simonmicro.de>
1 parent a9b17ad commit b72e628

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docker/docker-py3-kms-minimal/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
FROM alpine:3.15
33

44
ENV IP ::
5+
ENV DUALSTACK 1
56
ENV PORT 1688
67
ENV EPID ""
78
ENV LCID 1033

docker/docker-py3-kms/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG BUILD_COMMIT=unknown
55
ARG BUILD_BRANCH=unknown
66

77
ENV IP ::
8+
ENV DUALSTACK 1
89
ENV PORT 1688
910
ENV EPID ""
1011
ENV LCID 1033

docker/start.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def start_kms(logger):
4545
for i in range(1, len(listen_ip)):
4646
command.append("-n")
4747
command.append(listen_ip[i] + "," + listen_port)
48+
if dual := os.environ.get('DUALSTACK'):
49+
command.append("-d")
50+
command.append(dual)
4851

4952
logger.debug("server_cmd: %s" % (" ".join(str(x) for x in command).strip()))
5053
pykms_process = subprocess.Popen(command)

0 commit comments

Comments
 (0)