summaryrefslogtreecommitdiffstats
path: root/packaging/docker
diff options
context:
space:
mode:
authorKonstantinos Natsakis <5933427+knatsakis@users.noreply.github.com>2020-10-09 15:02:29 +0300
committerGitHub <noreply@github.com>2020-10-09 15:02:29 +0300
commitcac39ebd2dae7f923ee95c94f473571cccdf0305 (patch)
tree50d11ae3d24e003d504face5493a49ae576abbdc /packaging/docker
parent04344fda25733c674dd6db6bf59d75586293bbee (diff)
Rename NETDATA_PORT to NETDATA_LISTENER_PORT (#10045)
Because it clashes with a kubernetes defined NETDATA_PORT variable: Our Helm chart creates a service called netdata which in turn makes kubernetes export a NETDATA_PORT environment variable with a value like tcp://<ip>:19999 which is not parsable by the netdata agent as a value to the `-p` argument.
Diffstat (limited to 'packaging/docker')
-rw-r--r--packaging/docker/Dockerfile4
-rwxr-xr-xpackaging/docker/run.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile
index 475813b21a..9d0928b9ca 100644
--- a/packaging/docker/Dockerfile
+++ b/packaging/docker/Dockerfile
@@ -107,8 +107,8 @@ RUN \
# Install any Python wheels
RUN pip install /wheels/*
-ENV NETDATA_PORT 19999
-EXPOSE $NETDATA_PORT
+ENV NETDATA_LISTENER_PORT 19999
+EXPOSE $NETDATA_LISTENER_PORT
ENTRYPOINT ["/usr/sbin/run.sh"]
diff --git a/packaging/docker/run.sh b/packaging/docker/run.sh
index 8a2ed8c6c6..726f3849d5 100755
--- a/packaging/docker/run.sh
+++ b/packaging/docker/run.sh
@@ -19,6 +19,6 @@ if [ -n "${PGID}" ]; then
usermod -a -G "${PGID}" "${DOCKER_USR}" || echo >&2 "Could not add netdata user to group docker with ID ${PGID}"
fi
-exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_PORT}" -W set web "web files group" root -W set web "web files owner" root "$@"
+exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_LISTENER_PORT}" -W set web "web files group" root -W set web "web files owner" root "$@"
echo "Netdata entrypoint script, completed!"