File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -921,6 +921,25 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
921921 docker-php-ext-install xmlrpc \
922922;fi
923923
924+ # ##########################################################################
925+ # New Relic for PHP:
926+ # ##########################################################################
927+
928+ ARG NEW_RELIC_KEY=000000
929+ ARG NEW_RELIC_APP_NAME=app_name
930+ RUN \
931+ curl -L http://download.newrelic.com/php_agent/release/newrelic-php5-9.13.0.270-linux.tar.gz | tar -C /tmp -zx && \
932+ export NR_INSTALL_USE_CP_NOT_LN=1 && \
933+ export NR_INSTALL_SILENT=1 && \
934+ /tmp/newrelic-php5-*/newrelic-install install && \
935+ rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* && \
936+ sed -i \
937+ -e 's/"REPLACE_WITH_REAL_KEY"/"${NEW_RELIC_KEY}"/' \
938+ -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "${NEW_RELIC_APP_NAME}"/' \
939+ -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
940+ -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
941+ /usr/local/etc/php/conf.d/newrelic.ini
942+
924943# ##########################################################################
925944# Downgrade Openssl:
926945# ##########################################################################
You can’t perform that action at this time.
0 commit comments