|
@@ -921,6 +921,25 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
|
|
|
docker-php-ext-install xmlrpc \
|
|
|
;fi
|
|
|
|
|
|
+###########################################################################
|
|
|
+# New Relic for PHP:
|
|
|
+###########################################################################
|
|
|
+
|
|
|
+ARG NEW_RELIC_KEY=000000
|
|
|
+ARG NEW_RELIC_APP_NAME=app_name
|
|
|
+RUN \
|
|
|
+ curl -L http://download.newrelic.com/php_agent/release/newrelic-php5-9.13.0.270-linux.tar.gz | tar -C /tmp -zx && \
|
|
|
+ export NR_INSTALL_USE_CP_NOT_LN=1 && \
|
|
|
+ export NR_INSTALL_SILENT=1 && \
|
|
|
+ /tmp/newrelic-php5-*/newrelic-install install && \
|
|
|
+ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* && \
|
|
|
+ sed -i \
|
|
|
+ -e 's/"REPLACE_WITH_REAL_KEY"/"${NEW_RELIC_KEY}"/' \
|
|
|
+ -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "${NEW_RELIC_APP_NAME}"/' \
|
|
|
+ -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
|
|
|
+ -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
|
|
|
+ /usr/local/etc/php/conf.d/newrelic.ini
|
|
|
+
|
|
|
###########################################################################
|
|
|
# Downgrade Openssl:
|
|
|
###########################################################################
|