Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$sugar_config['metrics_enabled'] = 1;
$sugar_config['metric_providers']['SugarMetric_Provider_Newrelic'] = 'include/SugarMetric/Provider/Newrelic.php';
$sugar_config['metric_settings']['SugarMetric_Provider_Newrelic']['applicationname'] = 'Sugar';
FROM php:7.3-apache-stretch
.
.
.
RUN apt-get install -y gnupg \
&& echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' >> /etc/apt/sources.list.d/newrelic.list \
&& curl -L https://download.newrelic.com/548C16BF.gpg | apt-key add - \
&& echo 'newrelic.transaction_tracer.detail = 1' >> /usr/local/etc/php/conf.d/newrelic-additional.ini \
&& echo 'newrelic.transaction_tracer.internal_functions_enabled = 1' >> /usr/local/etc/php/conf.d/newrelic-additional.ini \
&& echo 'newrelic.transaction_tracer.enabled = 1' >> /usr/local/etc/php/conf.d/newrelic-additional.ini
ENV NR_INSTALL_SILENT 1
ENV NR_INSTALL_KEY <key here>
ENV NEW_RELIC_APP_NAME "Sugar"
RUN apt-get update \
&& apt-get install -y newrelic-php5
RUN newrelic-install install
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.