Skip to content

Commit 497f953

Browse files
committed
Fix based on PR feedback
1 parent 73c5215 commit 497f953

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Dockerfile-dogstatsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN echo "deb http://apt.datadoghq.com/ stable main" > /etc/apt/sources.list.d/d
1616
&& apt-get update \
1717
&& apt-get install --no-install-recommends -y datadog-agent="${AGENT_VERSION}" ca-certificates \
1818
&& apt-get clean \
19-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
19+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2020

2121
# Add install and config files
2222
COPY entrypoint-dogstatsd.sh /entrypoint.sh

Dockerfile-dogstatsd-alpine

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ENV DD_HOME=/opt/datadog-agent \
99
AGENT_VERSION=5.16.0 \
1010
DD_ETC_ROOT="/opt/datadog-agent/agent" \
1111
PATH="/opt/datadog-agent/venv/bin:/opt/datadog-agent/agent/bin:$PATH" \
12-
PATH="${DD_HOME}/venv/bin:${DD_HOME}/bin:${PATH}" \
1312
PYTHONPATH=/opt/datadog-agent/agent \
1413
DD_CONF_LOG_TO_SYSLOG=no \
1514
NON_LOCAL_TRAFFIC=yes

entrypoint-dogstatsd.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ fi
1111
##### Core config #####
1212
python /config_builder.py
1313

14-
# ensure that the trace-agent doesn't run unless instructed to
15-
if [ $DD_APM_ENABLED ]; then
16-
export DD_APM_ENABLED=${DD_APM_ENABLED}
17-
else
18-
# disable the agent when the env var is absent
19-
export DD_APM_ENABLED=false
20-
fi
14+
# ensure that the trace-agent doesn't run unless instructed to
15+
export DD_APM_ENABLED=${DD_APM_ENABLED:-false}
2116

2217
##### Starting up #####
2318

0 commit comments

Comments
 (0)