mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add newrelic

ro0NL opened this issue · comments

Hi,

We use the following Dockerfile snippet to install newrelic on PHP 8.1

RUN curl -L "https://download.newrelic.com/php_agent/release/newrelic-php5-10.11.0.3-linux.tar.gz" --output /tmp/newrelic.tar.gz && \
    cd /tmp && \
    tar -xf newrelic.tar.gz && \
    cd newrelic-* && \
    NR_INSTALL_SILENT=true ./newrelic-install install && \
    cp --remove-destination "$(readlink "$(php -r "echo ini_get ('extension_dir');")/newrelic.so")" "$(php -r "echo ini_get ('extension_dir');")/newrelic.so" && \
    rm -rf /tmp/newrelic*

I'm wondering if it could be supported here 👼