Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fails to run on Alpine images #1681

Open
2 tasks done
chriptus13 opened this issue Feb 21, 2025 · 2 comments
Open
2 tasks done

[BUG] Fails to run on Alpine images #1681

chriptus13 opened this issue Feb 21, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@chriptus13
Copy link

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

@chriptus13 chriptus13 added the bug Something isn't working label Feb 21, 2025
@github-project-automation github-project-automation bot moved this to To Triage in CLI - Kanban Feb 21, 2025
Copy link
Contributor

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@chriptus13 chriptus13 changed the title [BUG] Fail to run on Alpine images [BUG] Fails to run on Alpine images Feb 21, 2025
@Rustix69
Copy link

Rustix69 commented Mar 5, 2025

@AceTheCreator @chriptus13 Can I work on this Issue, I will start work once assigned.
Estimated Time : One day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

2 participants