Skip to content

Conversation

@akshat99812
Copy link

@akshat99812 akshat99812 commented Oct 5, 2025

Description
This pull request addresses and fixes the issue reported in asyncapi/cli#1799
.
The changes have been implemented in the AsyncAPI Website repository to ensure consistency and resolve the problem identified in the CLI project.

Changes include:

Added the docs for the installation of cli using docker first it was only by building the image locally , added the required docs for installing the cli using docker registery.

Screenshot 2025-10-05 at 10 54 16 PM Screenshot 2025-10-05 at 10 54 46 PM Screenshot 2025-10-05 at 10 55 23 PM

Related issue(s)
Resolves asyncapi/cli#1799

Summary by CodeRabbit

  • Documentation
    • Rewrote Docker installation into two clear paths: local build with detailed volume mounts, and Docker Hub pull with a simplified run command.
    • Added full end-to-end examples for both options (complete local build sequence and single-command Hub usage).
    • Clarified Windows-specific syntax and preserved the Windows note.
    • Removed the old combined build/run snippet and consolidated guidance for simpler setup.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide 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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 5, 2025

Walkthrough

Rewrote the Docker section of the CLI installation guide into two explicit options: (1) build locally with detailed volume mounts and full command sequence, and (2) pull from Docker Hub with a simplified single-run command. Clarified Windows syntax and removed the original condensed build/run snippet.

Changes

Cohort / File(s) Summary of changes
Docs — CLI Installation (Docker)
markdown/docs/tools/cli/installation.md
Reworked Docker section into two options (build locally vs. pull from Hub). Added comprehensive example commands, clarified Windows syntax and notes, consolidated examples, and removed the original condensed build-and-run snippet.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • thulieblack
  • TRohit20
  • CBID2
  • asyncapi-bot-eve

Poem

I hopped through docs with a whisker twitch,
Two Docker paths now line the ditch,
Build up local, or pull with a switch,
Windows gets tips—no confusing glitch,
Happy hops! — from your rabbit, quick 🐇

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title concisely summarizes the primary change by indicating that the CLI documentation’s Docker installation instructions have been updated; it follows conventional commit style, is clear and specific, and avoids unnecessary detail or noise.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 12ffd57 and 8ea4aec.

📒 Files selected for processing (1)
  • markdown/docs/tools/cli/installation.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • markdown/docs/tools/cli/installation.md
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Test NodeJS PR - windows-latest

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@netlify
Copy link

netlify bot commented Oct 5, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 036bab0
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/68ea6fe70136f10008aa1786
😎 Deploy Preview https://deploy-preview-4457--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Oct 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (19e3c34) to head (036bab0).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4457   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          778       778           
  Branches       144       144           
=========================================
  Hits           778       778           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Oct 5, 2025

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 37
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-4457--asyncapi-website.netlify.app/

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
markdown/docs/tools/cli/installation.md (1)

100-102: Clarify Option 2 example with user-facing paths.

This example still mounts the CLI repo’s fixture file, which readers won’t have when they’re just pulling the published image. The command fails unless they also clone the repo. Please switch to neutral placeholders (or add a brief note) so the sample works for a clean environment.

-```bash
-docker run --rm -it --user=root -v ${PWD}/test/integration/fixtures/asyncapi_v1.yml:/app/asyncapi.yml -v ${PWD}/output:/app/output asyncapi/cli generate fromTemplate -o /app/output /app/asyncapi.yml @asyncapi/html-template --force-write
-```
+```bash
+docker run --rm -it --user=root \
+  -v /absolute/path/to/your/asyncapi.yml:/app/asyncapi.yml \
+  -v /absolute/path/to/output-directory:/app/output \
+  asyncapi/cli generate fromTemplate -o /app/output /app/asyncapi.yml @asyncapi/html-template --force-write
+```
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3b4454f and 12ffd57.

📒 Files selected for processing (1)
  • markdown/docs/tools/cli/installation.md (1 hunks)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Redirect rules - asyncapi-website
  • GitHub Check: Header rules - asyncapi-website
  • GitHub Check: Pages changed - asyncapi-website
  • GitHub Check: Lighthouse CI
  • GitHub Check: Test NodeJS PR - windows-latest

@akshat99812 akshat99812 changed the title docs:cli installation docs using docker update docs(cli): update installation instructions for Docker usage Oct 5, 2025
Then, run the image using:

```bash
docker run --rm -it --user=root -v [ASYNCAPI SPEC FILE LOCATION]:/app/asyncapi.yml -v [GENERATED FILES LOCATION]:/app/output asyncapi/cli [COMMAND HERE]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akshat99812 I would recommend keeping the original formatting for command syntax and example where each parameter is on a new line. This gives you a better readability and shorter line length.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akshat99812
Copy link
Author

hey @TRohit20 any update?


---

## 🏗️ Option 1: Build the image locally
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 🏗️ Option 1: Build the image locally
## Option 1: Build the image locally

On the preview, I spot several issues:

As I expected, adding emojis to titles leads to non-user-friendly anchor links, so it's better to remove them

One Two
Screenshot 2025-10-20 at 8 22 48 PM Screenshot 2025-10-20 at 8 22 59 PM

Another drawback is that with added emojis, the browser is no longer able to scroll to these sections after clicking the links in the table of contents.

---

## 🐳 Option 2: Pull the image from Docker Hub
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 🐳 Option 2: Pull the image from Docker Hub
## Option 2: Pull the image from Docker Hub

asyncapi/cli [COMMAND HERE]
```

### Example
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Example
**Example**

Both sections have the same link to examples (#examples), so when you click on the example in the second section, the browser scrolls to the example in the first section (which is kinda expected behavior). To avoid this confusion, I would recommend making examples as bold text, not headings.


# Example that you can run inside the cli directory after cloning this repository. First, you specify the mount in the location of your AsyncAPI specification file and then you mount it in the directory where the generation result should be saved.
```
### Example
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Example
**Example**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[📑 Docs]: Docs for installation with docker not mention the docker repository image for cli.

4 participants