File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff 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
2222COPY entrypoint-dogstatsd.sh /entrypoint.sh
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1111# #### Core config #####
1212python /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
You can’t perform that action at this time.
0 commit comments