Skip to content

Commit 854c6f3

Browse files
committed
feat: add newrelic
1 parent b8b8b0c commit 854c6f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ RUN echo "---> Configure Opcache" && \
5757
echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini && \
5858
echo "opcache.enable_cli=0" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
5959

60+
RUN echo "---> Adding NewRelic" && \
61+
apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests gnupg2 \
62+
&& echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list \
63+
&& wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - \
64+
&& sudo apt-get update && apt-get install -y -q --no-install-recommends --no-install-suggests newrelic-php5 \
65+
&& NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 newrelic-install install \
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+
&& apt-get remove -y gnupg2 && rm -rf /var/lib/apt/lists/* \
68+
&& echo "newrelic.distributed_tracing_enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
69+
6070
RUN echo "---> Adding Tini" && \
6171
wget -O /tini https://github.com/krallin/tini/releases/download/v0.18.0/tini-static && \
6272
chmod +x /tini

0 commit comments

Comments
 (0)