Skip to content

Commit 00b3be8

Browse files
committed
(feat): add newrelic de volta
1 parent 0ad191d commit 00b3be8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Dockerfile

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

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# php-apache-oci8-composer
2-
Our docker image with php 8.0, apache and composer 2, but no newrelic yet
2+
Our docker image with php 8.0, apache and composer 2

0 commit comments

Comments
 (0)