Last active
September 24, 2021 17:19
-
-
Save mesaque/c14550ca1f9c3b4ffa69fe0aa495af51 to your computer and use it in GitHub Desktop.
docker hub php alpine 3.10 new relic install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4.21-fpm-alpine3.13 | |
MAINTAINER [email protected] | |
USER root | |
ENV NEW_RELIC_VERSION php5-9.18.1.303-linux-musl | |
ENV NR_INSTALL_SILENT 1 | |
ENV NR_INSTALL_KEY YOUR-KEY-HERE | |
ENV NR_APP_NAME 'You Name' | |
ENV NEW_RELIC_DIR /usr/local/lib/php/extensions | |
RUN apk add gcompat | |
RUN rm -rf /etc/dpkg | |
RUN cd $NEW_RELIC_DIR && \ | |
mkdir -p /etc/default /var/log/newrelic /usr/lib/newrelic-php5/scripts && \ | |
chmod 777 /var/log/newrelic && \ | |
wget https://download.newrelic.com/php_agent/release/newrelic-${NEW_RELIC_VERSION}.tar.gz && \ | |
gzip -dc newrelic-${NEW_RELIC_VERSION}.tar.gz | tar xf - && \ | |
${NEW_RELIC_DIR}/newrelic-${NEW_RELIC_VERSION}/newrelic-install install | |
USER www-data |
Vlw cara muito boa a configuração
Só acrescentaria o ENV NR_APP_NAME 'You Name'
Para ter uma configuração por projeto
Feito meu amigo vlw!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vlw cara muito boa a configuração
Só acrescentaria o ENV NR_APP_NAME 'You Name'
Para ter uma configuração por projeto