Skip to content

Instantly share code, notes, and snippets.

@ThiagoBarradas
Created July 30, 2020 01:34
Show Gist options
  • Save ThiagoBarradas/9567e89e100b85888690af18c1caac24 to your computer and use it in GitHub Desktop.
Save ThiagoBarradas/9567e89e100b85888690af18c1caac24 to your computer and use it in GitHub Desktop.
# NewRelic
RUN apt-get update && apt-get install -y wget ca-certificates gnupg \
&& echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee /etc/apt/sources.list.d/newrelic.list \
&& wget https://download.newrelic.com/548C16BF.gpg \
&& apt-key add 548C16BF.gpg \
&& apt-get update \
&& apt-get install -y newrelic-netcore20-agent
# Generic settings
ENV CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A}
ENV CORECLR_NEWRELIC_HOME=/usr/local/newrelic-netcore20-agent
ENV CORECLR_PROFILER_PATH=/usr/local/newrelic-netcore20-agent/libNewRelicProfiler.so
ENV NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=true
# 0 = APM Disabled | 1 = Enabled
ENV CORECLR_ENABLE_PROFILING=0
# App Name - Must be unique
ENV NEW_RELIC_APP_NAME="My Beautiful API"
# NewRelic Agent Key
ENV NEW_RELIC_LICENSE_KEY=<inject-value>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment