Skip to content

feat(cli): add Docker Compose example for the Bruno CLI Docker image - #8036

Merged
bijin-bruno merged 10 commits into
usebruno:mainfrom
sundram-bruno:feature/docker-compose-example
May 20, 2026
Merged

bijin-bruno merged 10 commits into
usebruno:mainfrom
sundram-bruno:feature/docker-compose-example

Conversation

@sundram-bruno

@sundram-bruno sundram-bruno commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a Docker Compose example for the official Bruno CLI Docker image. Two pieces:

  1. In-repo, runnable demo — packages/bruno-tests/collection/docker-compose.yml. Cloning the repo and running cd packages/bruno-tests/collection && docker compose run --rm bruno-cli fires the echo folder
    against the Prod environment inside usebruno/cli:3.3. Useful for contributors and for sanity-checking the published image locally.

  2. Documentation refresh in packages/bruno-cli/docker/README.md:

    • New top-level "Docker Compose" section with Quick example, "Try it from this repo", and a pointer to the standalone demo at bruno-collections/bruno-cli-docker.
    • Step 3 — clearer wording, new path-based examples, Windows %cd% example, note about -r for nested collections.
    • "Image structure" heading renamed to "Folder structure".
    • Description now links both to Bruno (usebruno.com) and Bruno CLI docs (docs.usebruno.com/bru-cli).
    • Expanded Tags table to enumerate every published tag (alpine + debian × full / minor / major / latest variants).
    • "All version × variant combinations" reduced to a placeholder-based summary; removed orphan 3.2.0 row.
    • Debian variant size corrected from ~200MB+ to ~162MB (actual published size).

Contribution Checklist:

  • [] I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Documentation
    • Refined Docker CLI docs: clearer Alpine/Debian tagging, exact/version float semantics, and GHCR mirroring with a selector-style matrix.
    • Clarified usage: unsuffixed → Alpine, version pinning, removed --rm from examples, multi-line run examples, Windows path notes, and note that run is non-recursive by default (use -r).
    • Added Docker Compose example + demo and docs for container report outputs; added .gitignore for reports.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

This PR updates Docker docs for the Bruno CLI: clarifies image variants and tagging, revises docker run examples (mount to /bruno, argument placement, recursion note), removes many --rm usages, adds a Docker Compose example, and adds a test compose file plus reports folder docs.

Changes

Docker CLI Documentation and Usage Examples

Layer / File(s) Summary
Docker image reference and tagging
packages/bruno-cli/docker/README.md
Refined intro and Debian size note; split tag guidance into Alpine (default) and Debian sections with aliases, exact immutable version tags, semver float selectors, an unsuffixed→Alpine convention, and a selector-based matrix; restated GHCR mirroring.
Run examples and Docker Compose
packages/bruno-cli/docker/README.md, packages/bruno-tests/docker-compose.yml
Rewrote run examples to mount collections at /bruno, place bru args after the image, document bru run recursion (-r), add Windows path hints, convert single-line snippets to multi-line, remove --rm from many examples, update version/variant pinning to use image tags, adjust GitHub Actions example, and add a Docker Compose section with usage and demo link.
Alpine/Debian image README usage snippets
packages/bruno-cli/docker/images/alpine/README.md, packages/bruno-cli/docker/images/debian/README.md
Dropped --rm from example docker run usage snippets and aligned examples with main README conventions.
Test reports folder and gitignore
packages/bruno-tests/reports/.gitignore, packages/bruno-tests/reports/README.md
Added reports folder README describing generated results.json, results.xml, results.html and a .gitignore that ignores generated files while keeping README and .gitignore tracked.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • usebruno/bruno#8001: Updates the same Docker CLI README with overlapping tag and usage guidance.

Suggested labels

size/XL

Suggested reviewers

  • helloanoop
  • lohit-bruno
  • naman-bruno
  • bijin-bruno
  • sid-bruno

Poem

📦 Docker docs smoothed, tags set straight,
Mount /bruno and pass args after the crate,
Leave --rm behind in many a run,
Compose added — try the demo, have fun!
🚢✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main objective of the PR: adding a Docker Compose example for the Bruno CLI Docker image.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/bruno-cli/docker/README.md`:
- Around line 107-114: The blockquote sections in the README.md violate MD028
due to blank lines inside the blockquotes; edit the blockquote paragraphs (the
Cross-platform note and the Note on `-r`) to remove the empty lines between the
quoted lines so each blockquote is a contiguous paragraph (no blank lines inside
the >-prefixed lines), preserving existing text and markdown characters like
`$(pwd)`, `${PWD}`, `%cd%`, `-r`, `bru run`, and code spans.
- Around line 46-72: The README claims images are published to Docker Hub
(usebruno/cli) and GHCR (ghcr.io/usebruno/cli) with specific tag patterns but no
publish workflow exists; either implement a CI workflow that builds both Alpine
and Debian Dockerfiles and pushes the correct tag formats on release or update
the README to mark the tags as "planned/not yet published." To implement: add a
GitHub Actions workflow (e.g., publish workflow) that builds both variants
(Alpine and Debian), tags images as latest, latest-alpine, latest-debian,
alpine, debian, <version>, <version>-alpine, <version>-debian, <major.minor>
etc., and pushes to both registries using DOCKERHUB credentials
(DOCKERHUB_USERNAME/DOCKERHUB_TOKEN) and GITHUB_TOKEN; ensure the workflow is
triggered on release creation and/or a repository dispatch/input for the "Tag
this version as latest" option. Alternatively, edit
packages/bruno-cli/docker/README.md to explicitly state that the described tags
are not yet published and document the planned workflow or required credentials
to publish.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6cccf692-adc4-4485-a99b-76b334f03763

📥 Commits

Reviewing files that changed from the base of the PR and between cea883e and 4f5d964.

📒 Files selected for processing (2)
  • packages/bruno-cli/docker/README.md
  • packages/bruno-tests/collection/docker-compose.yml

Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
sundram-bruno and others added 4 commits May 19, 2026 17:30
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…ion folder

Keeps packages/bruno-tests/collection/ as pure Bruno collection content
(bruno.json, .bru files, environments). The docker-compose example now
sits one level up and mounts ./collection into the container, so the
collection stays portable.
…o use it

Command examples in docker/README.md no longer suggest --rm by default so
users can docker logs / docker inspect the stopped container after a run.
A note panel under Step 3 explains what --rm does and when to opt in (CI
hygiene, avoiding stopped-container buildup). The version-check command
in Step 2 keeps --rm since it is a one-shot sanity probe. Alpine and
Debian sub-READMEs follow the same policy; the explanatory note lives
only in the main docker/README.md.
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-tests/docker-compose.yml Resolved
…st image tag, use placeholder collection path
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-cli/docker/README.md Resolved
Comment thread packages/bruno-tests/reports/.gitignore Resolved
…note, dedupe tag table, consolidate gitignore
bijin-bruno
bijin-bruno previously approved these changes May 20, 2026
lyh543 pushed a commit to lyh543/bruno that referenced this pull request May 22, 2026
…sebruno#8036)

* feat(cli): add Docker Compose example for the Bruno CLI Docker image

* Update packages/bruno-cli/docker/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* refactor(docker-compose): move docker-compose.yml outside the collection folder

Keeps packages/bruno-tests/collection/ as pure Bruno collection content
(bruno.json, .bru files, environments). The docker-compose example now
sits one level up and mounts ./collection into the container, so the
collection stays portable.

* docs(cli): omit --rm from docker examples, add note explaining when to use it

Command examples in docker/README.md no longer suggest --rm by default so
users can docker logs / docker inspect the stopped container after a run.
A note panel under Step 3 explains what --rm does and when to opt in (CI
hygiene, avoiding stopped-container buildup). The version-check command
in Step 2 keeps --rm since it is a one-shot sanity probe. Alpine and
Debian sub-READMEs follow the same policy; the explanatory note lives
only in the main docker/README.md.

* feat(bruno-tests): wire docker-compose to emit JSON, JUnit, HTML reports via mounted reports/ dir

* docs(cli): apply PR review feedback — rephrase step 3 intro, use latest image tag, use placeholder collection path

* docs(cli): apply EM review — trim bru-only steps, generalize options note, dedupe tag table, consolidate gitignore

* docs(cli): minor README polish in docker docs (add --rm to CI example, simplify collection path placeholder)

* docs(cli): drop --env staging from generic examples, pin CI snippets to :latest, reposition --rm note

* docs: updated Readme.md

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
jattsson pushed a commit to jattsson/bruno that referenced this pull request May 26, 2026
…sebruno#8036)

* feat(cli): add Docker Compose example for the Bruno CLI Docker image

* Update packages/bruno-cli/docker/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* refactor(docker-compose): move docker-compose.yml outside the collection folder

Keeps packages/bruno-tests/collection/ as pure Bruno collection content
(bruno.json, .bru files, environments). The docker-compose example now
sits one level up and mounts ./collection into the container, so the
collection stays portable.

* docs(cli): omit --rm from docker examples, add note explaining when to use it

Command examples in docker/README.md no longer suggest --rm by default so
users can docker logs / docker inspect the stopped container after a run.
A note panel under Step 3 explains what --rm does and when to opt in (CI
hygiene, avoiding stopped-container buildup). The version-check command
in Step 2 keeps --rm since it is a one-shot sanity probe. Alpine and
Debian sub-READMEs follow the same policy; the explanatory note lives
only in the main docker/README.md.

* feat(bruno-tests): wire docker-compose to emit JSON, JUnit, HTML reports via mounted reports/ dir

* docs(cli): apply PR review feedback — rephrase step 3 intro, use latest image tag, use placeholder collection path

* docs(cli): apply EM review — trim bru-only steps, generalize options note, dedupe tag table, consolidate gitignore

* docs(cli): minor README polish in docker docs (add --rm to CI example, simplify collection path placeholder)

* docs(cli): drop --env staging from generic examples, pin CI snippets to :latest, reposition --rm note

* docs: updated Readme.md

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
sharan-bruno pushed a commit to sharan-bruno/bruno that referenced this pull request Jun 4, 2026
…sebruno#8036)

* feat(cli): add Docker Compose example for the Bruno CLI Docker image

* Update packages/bruno-cli/docker/README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* refactor(docker-compose): move docker-compose.yml outside the collection folder

Keeps packages/bruno-tests/collection/ as pure Bruno collection content
(bruno.json, .bru files, environments). The docker-compose example now
sits one level up and mounts ./collection into the container, so the
collection stays portable.

* docs(cli): omit --rm from docker examples, add note explaining when to use it

Command examples in docker/README.md no longer suggest --rm by default so
users can docker logs / docker inspect the stopped container after a run.
A note panel under Step 3 explains what --rm does and when to opt in (CI
hygiene, avoiding stopped-container buildup). The version-check command
in Step 2 keeps --rm since it is a one-shot sanity probe. Alpine and
Debian sub-READMEs follow the same policy; the explanatory note lives
only in the main docker/README.md.

* feat(bruno-tests): wire docker-compose to emit JSON, JUnit, HTML reports via mounted reports/ dir

* docs(cli): apply PR review feedback — rephrase step 3 intro, use latest image tag, use placeholder collection path

* docs(cli): apply EM review — trim bru-only steps, generalize options note, dedupe tag table, consolidate gitignore

* docs(cli): minor README polish in docker docs (add --rm to CI example, simplify collection path placeholder)

* docs(cli): drop --env staging from generic examples, pin CI snippets to :latest, reposition --rm note

* docs: updated Readme.md

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants