File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ RUN echo "---> Adding NewRelic" && \
66
66
&& chown www-data:www-data /usr/local/etc/php/conf.d/newrelic.ini && chmod a+rw /usr/local/etc/php/conf.d/newrelic.ini \
67
67
&& apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* \
68
68
&& echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
69
- && echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
69
+ && echo "newrelic.application_logging.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini \
70
+ && echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
70
71
71
72
RUN echo "---> Adding Tini" && \
72
73
wget -O /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-static && \
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [[ ${XDEBUG_ENABLED} == true ]]; then
4
- sudo xdebug-set-mode ${XDEBUG_MODE:- debug}
4
+ sudo -E xdebug-set-mode ${XDEBUG_MODE:- debug}
5
5
fi
6
6
7
- if [[ ${NR_ENABLED} == true ]]; then
8
- sudo sed -i -e " s/" REPLACE_WITH_REAL_KEY" /${NR_LICENSE_KEY} /g" /usr/local/etc/php/conf.d/newrelic.ini
9
- sudo sed -i -e " s/PHP Application/${NR_APP_NAME} /g" /usr/local/etc/php/conf.d/newrelic.ini
10
- else
11
- echo " newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
12
- fi
7
+ sudo -E newrelic-setup
13
8
14
9
if [[ ${SESSION_HANDLER} == true ]]; then
15
10
echo " session.save_handler = ${SESSION_HANDLER_NAME} " | sudo tee -a /usr/local/etc/php/conf.d/session-handler.ini
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [[ ${NR_ENABLED} == true ]]; then
4
+ sed -i -e " s/" REPLACE_WITH_REAL_KEY" /${NR_LICENSE_KEY} /g" /usr/local/etc/php/conf.d/newrelic.ini
5
+ sed -i -e " s/PHP Application/${NR_APP_NAME} /g" /usr/local/etc/php/conf.d/newrelic.ini
6
+ echo " newrelic.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
7
+ else
8
+ echo " newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
9
+ fi
You can’t perform that action at this time.
0 commit comments