Skip to content

error with apk-tools 3 when installing on php-fpm Alpine #1407

@albgau

Description

@albgau

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:

  1. get the image
    docker run --rm -it --user root docker php:8.4.16-fpm-alpine sh

  2. 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

  3. and try to install
    apk add --allow-untrusted apm-agent-php.apk

  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions