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] Docker container for AsyncAPI CLI exits immediately #1694

Open
2 tasks done
SahilDahekar opened this issue Mar 5, 2025 · 6 comments
Open
2 tasks done

[BUG] Docker container for AsyncAPI CLI exits immediately #1694

SahilDahekar opened this issue Mar 5, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@SahilDahekar
Copy link
Contributor

Describe the bug.

  • Running the asyncapi/cli Docker container results in an immediate exit with an error.
  • This prevents the CLI from running properly inside the container.

Expected behavior

The container should start and allow users to interact with the AsyncAPI CLI without errors.

Screenshots

Image

How to Reproduce

  1. Pull the AsyncAPI CLI image
docker pull asyncapi/cli
  1. Run the container interactively
docker run -it -rm asyncapi/cli sh
  1. Observe that the container exits immediately with error.
/libraries/bin/run_bin:12
    return oclifHandler(err.message);
           ^

TypeError: oclifHandler is not a function
    at /libraries/bin/run_bin:12:12

🥦 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 ?

Yes I am willing to submit a PR!

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

I have the fix ready , but waiting for maintainers approval .

@shreverr
Copy link

shreverr commented Mar 5, 2025

Hi @SahilDahekar. I think this is not the intended use of the asyncapi/cli docker image. It is made to run cli commands in a docker container environment.

If you want to open a shell inside the container you need to override the entrypoint.

docker run -it --rm --entrypoint sh asyncapi/cli

You can check out the docs
https://www.asyncapi.com/docs/tools/cli/installation#docker

@Ervishalpathak7
Copy link
Contributor

@SahilDahekar i have seen this issue, and the problem is that oclif handler was not properly imported in the files ,
i already fixed that issue in my latest pr #1692 with updating all the dependencies

@AayushSaini101
Copy link
Collaborator

Let's take this seprately @SahilDahekar you can create a MR on this

@SahilDahekar
Copy link
Contributor Author

Let's take this seprately @SahilDahekar you can create a MR on this

Did you mean PR ?

@AayushSaini101
Copy link
Collaborator

Let's take this seprately @SahilDahekar you can create a MR on this

Did you mean PR ?

yes

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

4 participants