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] Demo from homepage does not work #1153

Open
2 tasks done
cisarpavel opened this issue Mar 27, 2024 · 10 comments
Open
2 tasks done

[BUG] Demo from homepage does not work #1153

cisarpavel opened this issue Mar 27, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@cisarpavel
Copy link

Describe the bug.

Runnig demo usage using docker publish on project's homepage fails.
docker run --rm -it -v ${PWD}/example:/app/example -v ${PWD}/output:/app/output
asyncapi/cli generate fromTemplate https://bit.ly/asyncapi @asyncapi/html-template -o example

Expected behavior

Expected is that docs are generated using html template.

Screenshots

docker run --rm -it -v ${PWD}/example:/app/example -v ${PWD}/output:/app/output asyncapi/cli generate fromTemplate https://bit.ly/asyncapi @asyncapi/html-template -o example
Generation in progress. Keep calm and wait a bit... done

Generator Error: Installation failed

How to Reproduce

docker run --rm -it -v ${PWD}/example:/app/example -v ${PWD}/output:/app/output asyncapi/cli generate fromTemplate https://bit.ly/asyncapi @asyncapi/html-template -o example

🥦 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

@cisarpavel cisarpavel added the bug Something isn't working label Mar 27, 2024
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.

@derberg
Copy link
Member

derberg commented Mar 27, 2024

can you specify which demo site you have in mind

the docker command should have --user=root included as some transpiration files need to be generated inside docker

@cisarpavel
Copy link
Author

Sorry, I should be more precise. https://www.asyncapi.com/tools/generator

asyncio

@lmgyuan
Copy link
Collaborator

lmgyuan commented Apr 10, 2024

Screenshot 2024-04-09 at 8 31 35 PM

As I tried to replicate the issue, I actually ran into a different problem. It says that the generate is an unexpected identifier. May I ask if the doc needs to be updated? @derberg

Additionally, you mentioned that

the docker command should have --user=root included

Should we update the doc to reflect this?

@cisarpavel
Copy link
Author

Sorry for late response. Root user worked. Thanks.

@lmgyuan
Copy link
Collaborator

lmgyuan commented May 16, 2024

@derberg This issue seems to be resolved already. Should we close it?

@derberg
Copy link
Member

derberg commented May 16, 2024

@lmgyuan would be good to update instruction in website. This is a common issue, a need to use root user - mainly because of necessary transpilation that happens in the template

@lmgyuan
Copy link
Collaborator

lmgyuan commented Jul 24, 2024

If no one else is going to raise a PR, I am happy to fix the instruction in website for this : )

Copy link
Member

derberg commented Aug 1, 2024

@lmgyuan please go ahead

@DhairyaMajmudar
Copy link
Contributor

@derberg I came across the same while installing the image using docker as of which I've opened a PR in website repo fixing this asyncapi/website#3213

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
None yet
Development

No branches or pull requests

4 participants