Skip to content

Instantly share code, notes, and snippets.

@esimonetti
Last active December 24, 2019 04:51
Show Gist options
  • Save esimonetti/4f8c9f999316981c95399e787f474536 to your computer and use it in GitHub Desktop.
Save esimonetti/4f8c9f999316981c95399e787f474536 to your computer and use it in GitHub Desktop.
<?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