This image is used for multi-stage build of your dockerized app. It is based on https://github.com/newrelic/newrelic-php-agent and inside this image you can find next things:
Full hierarchy of output folder of this image (/output):
Inside your Dockerfile:
FROM axelpal/newrelic-php-agent AS newrelic-php-agent
...
COPY --from=newrelic-php-agent /output/extension/8.0/newrelic.so /usr/lib/php/20200930/newrelic.so
COPY --from=newrelic-php-agent /output/bin/* /usr/bin
You should replace ${PHP_VERSION} with your current version of php and also you should specify the path to your php extensions dir: In Debian/Ubuntu by default it is:
/usr/lib/php/20190902 for PHP 7.4/usr/lib/php/20200930 for PHP 8.0/usr/lib/php/20210902 for PHP 8.1You also should grab NewRelic's template for php extension and fill it out (config/newrelic.ini.template). After that you should use it inside your container with your app to configure NewRelic's php extension.
Content type
Image
Digest
sha256:580b58b21…
Size
85.5 MB
Last updated
over 2 years ago
docker pull axelpal/newrelic-php-agent