-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Describe the bug
When I try to install the apm-agent on latest PHP Alpine images (php:8.4.16-fpm-alpine or php:8.4.15-fpm-alpine), I get the following error:
ERROR: apm-agent-php.apk: v2 package format error
They seems to use now apk-tools 3
apk -v apk-tools 3.0.3-r1, compiled for x86_64.
To Reproduce
Steps to reproduce the behavior:
-
get the image
docker run --rm -it --user root docker php:8.4.16-fpm-alpine sh -
Download on apm-agent
curl -sSLf https://github.com/elastic/apm-agent-php/releases/download/v1.15.1/apm-agent-php_1.15.1_x86_64.apk -o apm-agent-php.apk -
and try to install
apk add --allow-untrusted apm-agent-php.apk -
Finally what i get
ERROR: apm-agent-php.apk: v2 package format error
Expected behavior
On previous container php8.4, I got this message ater installing and it work
OK: 70 MiB in 55 packages`
Can you help me fix this? I'm afraid that future PHP-FPM-Alpine image updates will use newer versions of apk-tools v3, thanks.