Skip to content

Instantly share code, notes, and snippets.

@laiso
Created October 25, 2019 04:50
Show Gist options
  • Save laiso/013f6f468257cfb869fcb39a678c30ea to your computer and use it in GitHub Desktop.
Save laiso/013f6f468257cfb869fcb39a678c30ea to your computer and use it in GitHub Desktop.
FROM php:fpm-alpine
RUN set -eux && \
apk update && \
apk add dpkg && \
curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.2.0.247-linux-musl.tar.gz | tar -C /tmp -zx && \
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 /tmp/newrelic-php5-*/newrelic-install install
# + curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.2.0.247-linux-musl.tar.gz
# + tar -C /tmp -zx
# % Total % Received % Xferd Average Speed Time Time Time Current
# Dload Upload Total Spent Left Speed
# 100 11.1M 100 11.1M 0 0 10.4M 0 0:00:01 0:00:01 --:--:-- 10.4M
# + NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 /tmp/newrelic-php5-9.2.0.247-linux-musl/newrelic-install install
# ERROR: the following directories could not be found:
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86
# ERROR: the following files could not be found:
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20180731-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20180731.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20170718-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20170718.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20160303-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20160303.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20151012-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20151012.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20131226-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20131226.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20121212-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20121212.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20100525-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20100525.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20090626-zts.so
# /tmp/newrelic-php5-9.2.0.247-linux-musl/agent/x86/newrelic-20090626.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment