aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/msb
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-09-24 07:55:36 +0000
committerGerrit Code Review <gerrit@onap.org>2021-09-24 07:55:36 +0000
commitea0e91a44cadf22ed8299418741f45c01dab02d5 (patch)
treeb01f84d93df2fd982696222de8b17b2335baea59 /kubernetes/msb
parent6e7db9c8de14f16087c14dc8992b8611d0442b39 (diff)
parent85b1492555d765b14864e0d2d59db7a50cdccaf0 (diff)
Merge "[COMMON] Enforce checkbashisms tox profile"
Diffstat (limited to 'kubernetes/msb')
-rwxr-xr-xkubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh13
1 files changed, 4 insertions, 9 deletions
diff --git a/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh b/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
index 2b42402102..18692d8afa 100755
--- a/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
+++ b/kubernetes/msb/components/msb-consul/resources/docker-entrypoint.sh
@@ -1,16 +1,11 @@
+#!/bin/sh
+
#!/usr/bin/dumb-init /bin/sh
+# As of docker 1.13, using docker run --init achieves the same outcome than dumb-init.
+
set -e
set -x
-# Note above that we run dumb-init as PID 1 in order to reap zombie processes
-# as well as forward signals to all processes in its session. Normally, sh
-# wouldn't do either of these functions so we'd leak zombies as well as do
-# unclean termination of all our sub-processes.
-# As of docker 1.13, using docker run --init achieves the same outcome.
-
-# You can set CONSUL_BIND_INTERFACE to the name of the interface you'd like to
-# bind to and this will look up the IP and pass the proper -bind= option along
-# to Consul.
CONSUL_BIND=
if [ -n "$CONSUL_BIND_INTERFACE" ]; then
CONSUL_BIND_ADDRESS=$(ip -o -4 addr list $CONSUL_BIND_INTERFACE | head -n1 | awk '{print $4}' | cut -d/ -f1)