newrelic-php-agent: Latest agent download does not include aarch64 support
As of agent 9.18 there is aarch64 support (ARM and Graviton 2 support) but the installer
Description
I would have expected when the agent supported the arch it’d be packaged in precompiled into the easy installer, maybe this is just a simple overlook!
Steps to Reproduce
Using a container on an aarch64 host, this snippet should work, but I realized it didn’t on my Graviton 2 based systems - it winds up installing the amd64 version of the agent, not the aarch64 version - the agent directory in the archive doesn’t include aarch64.
RUN curl -L "https://download.newrelic.com/php_agent/archive/${NEW_RELIC_AGENT_VERSION}/newrelic-php5-${NEW_RELIC_AGENT_VERSION}-linux.tar.gz" | tar -C /tmp -zx \
&& export NR_INSTALL_USE_CP_NOT_LN=1 \
&& export NR_INSTALL_SILENT=1 \
&& /tmp/newrelic-php5-*/newrelic-install install \
&& rm -rf /tmp/newrelic-php5-* /tmp/nrinstall*
Expected Behavior
The agent directory would be populated with aarch64 and the scripting to detect the arch would find it and select it properly.
Your Environment
Relevant Dockerfile specifics:
FROM ubuntu:bionic
ENV NEW_RELIC_AGENT_VERSION 9.18.1.303
ENV PHP_VERSION 7.4
Currently compiling the agent by hand using these instructions which winds up looking like this in the end:
RUN apt-get update && apt-get install -y git golang libpcre3-dev php${PHP_VERSION}-dev && \
curl -L -o /tmp/v${NEW_RELIC_AGENT_VERSION}.tar.gz https://github.com/newrelic/newrelic-php-agent/archive/refs/tags/v${NEW_RELIC_AGENT_VERSION}.tar.gz && \
cd /tmp && \
tar xfz v${NEW_RELIC_AGENT_VERSION}.tar.gz && \
cd newrelic-php-agent-${NEW_RELIC_AGENT_VERSION} && \
git init && \
make && \
make agent-install && \
mkdir -p 0777 /var/log/newrelic && \
rm -rf /tmp/v${NEW_RELIC_AGENT_VERSION}.tar.gz /tmp/newrelic-php-agent-${NEW_RELIC_AGENT_VERSION} && \
phpenmod newrelic
Note: I wanted to use Ubuntu Focal, but I think something is awry with that image (unrelated to this)
Additional context
I would have expected when the agent supported the arch it’d be packaged in precompiled into the easy installer, maybe this is just a simple overlook.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 8
- Comments: 21 (2 by maintainers)
Commits related to this issue
- Install newrelic extension and agent for arm64 https://github.com/newrelic/newrelic-php-agent/issues/323 — committed to wodby/php by csandanov a year ago
hi there! was wondering if there’s any news about the ARM64 support? right now our build times are heavily impacted by the lack of an arm64 extension
Would love to see support for Ubuntu 22.04 ARM64 (aarch64)
It is supported now 🥳🥳🥳 https://github.com/newrelic/newrelic-php-agent/releases/tag/v10.10.0.1
Hello @aquilinux , @xocasdashdash, Arm64 packaging and binaries are within our top priorities, this is currently in progress, and we expect it to be available in our upcoming releases.
I understand that a simple +1 is typically not very helpful, but I am wondering if this is even something that we can expect to happen at any point or not.
I wonder this because this issue is now over 1 year old and there has not been a single official answer from the Newrelic team, and as a paying customer of NewRelic I would like to understand if I should just plan to move away from Ubuntu on ARM64 if I want to use
newrelic-php5or if I can expect to have support at some point.Considering you cannot compile newrelic (#456) with the gcc 11+ it would be great to have arm64 tarballs
Still not available in the apt repo
ARM64 binaries provided in PHP Agent release 10.10.0.1.
Thank you for your feedback. While we can’t provide a precise timeline, arm64 support is within our roadmap, in progress and expected to be included in an upcoming release.
Right, so Ubuntu 22.04 ARM64 (aarch64) is not supported at all, even building from source 🙁
Looking at #327 they announced a release coming for March 9th, supporting PHP 8.1: https://github.com/newrelic/newrelic-php-agent/issues/327#issuecomment-1055543542
If the release bundles all those PRs, we could have support in that release.