mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 08:32:42 +00:00
Add support for newrelic on PHP 8.4, fix installing newrelic on PHP 7.0/7.1 (#1047)
* Add support for newrelic on PHP 8.4 Last week newrelic releases support of PHP 8.4: - https://docs.newrelic.com/docs/release-notes/agent-release-notes/php-release-notes/php-agent-11-5-0-18/ * Drop support newrelic for php 7.0 and 7.1 * Support php 7.0 & 7.1
This commit is contained in:
parent
5a87b11620
commit
fe56d5746a
2 changed files with 9 additions and 3 deletions
|
@ -2649,14 +2649,20 @@ installCargo() {
|
|||
|
||||
installNewRelic() {
|
||||
printf '# Installing newrelic\n'
|
||||
# see https://docs.newrelic.com/docs/apm/agents/php-agent/getting-started/php-agent-compatibility-requirements/
|
||||
if test $PHP_MAJMIN_VERSION -le 701; then
|
||||
installNewRelic_baseUrl=https://download.newrelic.com/php_agent/archive/10.21.0.11/
|
||||
else
|
||||
installNewRelic_baseUrl=https://download.newrelic.com/php_agent/release/
|
||||
fi
|
||||
installNewRelic_search='\bnewrelic-php[0-9.]*-[0-9]+(\.[0-9]+)*-linux'
|
||||
case "$DISTRO" in
|
||||
alpine)
|
||||
installNewRelic_search="$installNewRelic_search-musl"
|
||||
;;
|
||||
esac
|
||||
installNewRelic_file="$(curl -sSLf -o- https://download.newrelic.com/php_agent/release/ | sed -E 's/<[^>]*>//g' | grep -Eo "$installNewRelic_search.tar.gz" | sort | head -1)"
|
||||
installNewRelic_url="https://download.newrelic.com/php_agent/release/$installNewRelic_file"
|
||||
installNewRelic_file="$(curl -sSLf -o- "$installNewRelic_baseUrl" | sed -E 's/<[^>]*>//g' | grep -Eo "$installNewRelic_search.tar.gz" | sort | head -1)"
|
||||
installNewRelic_url="$installNewRelic_baseUrl$installNewRelic_file"
|
||||
installNewRelic_src="$(getPackageSource "$installNewRelic_url")"
|
||||
cd -- "$installNewRelic_src"
|
||||
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue