Skip to content

Instantly share code, notes, and snippets.

@mesaque
Last active September 24, 2021 17:19
Show Gist options
  • Save mesaque/c14550ca1f9c3b4ffa69fe0aa495af51 to your computer and use it in GitHub Desktop.
Save mesaque/c14550ca1f9c3b4ffa69fe0aa495af51 to your computer and use it in GitHub Desktop.
docker hub php alpine 3.10 new relic install
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
@antoniojuniordev
Copy link

Vlw cara muito boa a configuração
Só acrescentaria o ENV NR_APP_NAME 'You Name'
Para ter uma configuração por projeto

@mesaque
Copy link
Author

mesaque commented May 5, 2020

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