File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,6 +250,12 @@ PHP_FPM_DEFAULT_LOCALE=POSIX
250250PHP_FPM_PUID=1000
251251PHP_FPM_PGID=1000
252252
253+ ### PHP_FPM_NEW_RELIC #####################################
254+
255+ PHP_FPM_NEW_RELIC=false
256+ PHP_FPM_NEW_RELIC_KEY=0000
257+ PHP_FPM_NEW_RELIC_APP_NAME=app_name
258+
253259### PHP_WORKER ############################################
254260
255261PHP_WORKER_INSTALL_BZ2=false
Original file line number Diff line number Diff line change @@ -924,11 +924,12 @@ RUN if [ ${INSTALL_XMLRPC} = true ]; then \
924924# ##########################################################################
925925# New Relic for PHP:
926926# ##########################################################################
927+ ARG NEW_RELIC=${NEW_RELIC}
928+ ARG NEW_RELIC_KEY=${NEW_RELIC_KEY}
929+ ARG NEW_RELIC_APP_NAME=${NEW_RELIC_APP_NAME}
927930
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 && \
931+ RUN if [ ${NEW_RELIC} = true ]; then \
932+ curl -L http://download.newrelic.com/php_agent/archive/9.9.0.260/newrelic-php5-9.9.0.260-linux.tar.gz | tar -C /tmp -zx && \
932933 export NR_INSTALL_USE_CP_NOT_LN=1 && \
933934 export NR_INSTALL_SILENT=1 && \
934935 /tmp/newrelic-php5-*/newrelic-install install && \
@@ -938,8 +939,8 @@ RUN \
938939 -e 's/newrelic.appname = "PHP Application"/newrelic.appname = "${NEW_RELIC_APP_NAME}"/' \
939940 -e 's/;newrelic.daemon.app_connect_timeout =.*/newrelic.daemon.app_connect_timeout=15s/' \
940941 -e 's/;newrelic.daemon.start_timeout =.*/newrelic.daemon.start_timeout=5s/' \
941- /usr/local/etc/php/conf.d/newrelic.ini
942-
942+ /usr/local/etc/php/conf.d/newrelic.ini \
943+ ;fi
943944# ##########################################################################
944945# Downgrade Openssl:
945946# ##########################################################################
You can’t perform that action at this time.
0 commit comments