Skip to content

[BUG] Fails to run on Alpine images #1681

@chriptus13

Description

@chriptus13

Describe the bug.

The CLI x86_64 tarball is dynamically linked against glibc and Alpine based images expects musl-compatible binaries.

Hence, when trying to create a Docker image based on alpine it fails to run with:

ld-linux-x86-64.so.2: /opt/asyncapi/bin/node: Not a valid dynamic program

When run ldd asyncapi:

/lib/ld-musl-x86_64.so.1: cannot load asyncapi: No such file or directory

Expected behavior

I would expect that I can run asyncapi cli on alpine distro.

Screenshots

Image

How to Reproduce

Dockerfile:

FROM alpine:3.21

RUN apk update

RUN apk --no-cache add bash

# Install asyncapi-cli
ENV ASYNCAPI_VERSION="v2.16.5"
RUN wget --quiet -c -O- https://github.com/asyncapi/cli/releases/download/$ASYNCAPI_VERSION/asyncapi.tar.gz | tar -xz -C /opt
RUN ln -s /opt/asyncapi/bin/asyncapi /usr/local/bin/asyncapi

Docker run commands

  1. docker build --platform linux/amd64 . -t img
  2. docker run img asyncapi

This also fails when installing glibc compatibility packages libc6-compat or gcompat.

🥦 Browser

None

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions