Repository navigation
feat(cli): add Docker image with alpine and debian variants - #8001
Conversation
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughAdds Alpine and Debian Dockerfiles and variant/top-level READMEs documenting tags and usage, plus a smoke-test shell script that validates image runtime behavior and optionally runs a mounted collection. ChangesBruno CLI Docker Infrastructure
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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/images/alpine/Dockerfile`:
- Around line 21-26: The semver check in the RUN block using BRUNO_VERSION is
flawed because it uses `[ ! $(echo ... ) ]` which yields `[ ! ]` when grep
returns empty; replace that test with a proper exit-status check such as piping
BRUNO_VERSION into grep -qE and negating its result (e.g., `if ! echo
"$BRUNO_VERSION" | grep -qE "^[0-9]+\.[0-9]+\.[0-9]+$"; then ... fi`) or use `if
[ -n "$BRUNO_VERSION" ] && ! echo "$BRUNO_VERSION" | grep -qE
"^[0-9]+\.[0-9]+\.[0-9]+$"; then` so valid semver strings do not incorrectly
fail.
In `@packages/bruno-cli/docker/images/debian/Dockerfile`:
- Around line 21-26: The semver check fails because the current test uses
command substitution and `[ ! $(...) ]`, which breaks when grep returns empty;
update the RUN block that validates BRUNO_VERSION to test grep's exit status
instead of command substitution — i.e., echo the quoted BRUNO_VERSION and run
grep with the -qE option, negating that grep result to trigger the error path if
no match; ensure BRUNO_VERSION is properly quoted in the check and keep the same
error message and exit behavior when the semver is invalid.
In `@packages/bruno-cli/docker/smoke-test.sh`:
- Around line 77-88: The docker run invocation currently injects ENV_FLAG via an
unquoted expansion which relies on word splitting and will break if
COLLECTION_ENV contains spaces or special chars; change the call that sets and
uses ENV_FLAG (and where OUTPUT is assigned) to either quote the expansion (use
"$ENV_FLAG") or, better, avoid a combined string by conditionally appending the
env option as separate args (e.g., only add --env and its value when
COLLECTION_ENV is set) so that the docker run command receives two distinct,
safely-quoted arguments; update the logic around ENV_FLAG, COLLECTION_ENV, and
the OUTPUT=$(docker run ...) line accordingly.
🪄 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: 9d2b031b-44e2-45d2-be7a-e68b96c3b3dd
📒 Files selected for processing (6)
packages/bruno-cli/docker/README.mdpackages/bruno-cli/docker/images/alpine/Dockerfilepackages/bruno-cli/docker/images/alpine/README.mdpackages/bruno-cli/docker/images/debian/Dockerfilepackages/bruno-cli/docker/images/debian/README.mdpackages/bruno-cli/docker/smoke-test.sh
aae228a to
d3910ac
Compare
d3910ac to
df8c4b4
Compare
There was a problem hiding this comment.
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 93-99: Update the docker run examples in the README to include
Windows-safe mount syntax or an explicit platform note: replace or augment uses
of $(pwd) in the example commands shown (the three run examples and the other
mentioned ranges) with PowerShell/CMD equivalents (e.g., ${PWD} or
%cd%/converted path) or add a short line explaining cross-platform usage and
showing both POSIX and Windows forms so users running the CLI from
PowerShell/CMD get a working mount; reference the existing docker run examples
in the file when applying the change.
In `@packages/bruno-cli/docker/smoke-test.sh`:
- Around line 102-113: The legacy summary parsing fails because SUMMARY_REQ
contains "Passed: <n>" / "Failed: <n>" but the extraction uses patterns that
only match "<n> Passed" / "<n> Failed"; update the PASSED and FAILED extraction
to accept both formats (colon or space) by changing the grep/regex used in the
PASSED and FAILED assignments (symbols: SUMMARY_REQ, PASSED, FAILED) to match
either "Passed: <n>" or "<n> Passed" and similarly for "Failed" (e.g. use a
single -oE pattern that captures digits before or after the word and then
extract the digits), and keep the existing fallback defaults PASSED=${PASSED:-0}
and FAILED=${FAILED:-0}.
🪄 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: 12ddfb48-2884-4cac-9a0e-fc5e0d681203
📒 Files selected for processing (6)
packages/bruno-cli/docker/README.mdpackages/bruno-cli/docker/images/alpine/Dockerfilepackages/bruno-cli/docker/images/alpine/README.mdpackages/bruno-cli/docker/images/debian/Dockerfilepackages/bruno-cli/docker/images/debian/README.mdpackages/bruno-cli/docker/smoke-test.sh
✅ Files skipped from review due to trivial changes (2)
- packages/bruno-cli/docker/images/debian/README.md
- packages/bruno-cli/docker/images/alpine/Dockerfile
🚧 Files skipped from review as they are similar to previous changes (2)
- packages/bruno-cli/docker/images/alpine/README.md
- packages/bruno-cli/docker/images/debian/Dockerfile
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 7-17: The fenced code block under "Image structure" in README.md
lacks a language identifier (MD040); update the markdown by adding a language
tag (e.g., "text") to the tree-style fenced block so the block begins with
```text; target the fenced code block shown under the "Image structure" section
and ensure the opening fence includes the language identifier to satisfy the
linter.
🪄 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: b8dc2048-0c0c-428f-bb66-58d1de64e85b
📒 Files selected for processing (6)
packages/bruno-cli/docker/README.mdpackages/bruno-cli/docker/images/alpine/Dockerfilepackages/bruno-cli/docker/images/alpine/README.mdpackages/bruno-cli/docker/images/debian/Dockerfilepackages/bruno-cli/docker/images/debian/README.mdpackages/bruno-cli/docker/smoke-test.sh
✅ Files skipped from review due to trivial changes (1)
- packages/bruno-cli/docker/images/debian/README.md
🚧 Files skipped from review as they are similar to previous changes (4)
- packages/bruno-cli/docker/images/alpine/README.md
- packages/bruno-cli/docker/images/debian/Dockerfile
- packages/bruno-cli/docker/images/alpine/Dockerfile
- packages/bruno-cli/docker/smoke-test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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/smoke-test.sh`:
- Around line 3-6: The docker run invocation uses -v "$COLLECTION_PATH:/bruno"
which breaks on Windows paths; change these bind mounts to use --mount
type=bind,source="$COLLECTION_PATH",target=/bruno (preserve quoting) wherever
COLLECTION_PATH is mounted (the docker run commands around the initial -v usage
and the occurrences noted at lines 16 and 88–90) so Docker receives a
cross-platform bind mount; update any additional -v "$COLLECTION_PATH:..."
occurrences to the equivalent --mount form and keep other flags (environment
vars, image name, run-target) unchanged.
🪄 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: cc460a55-b809-41ee-82dc-ac996532ff44
📒 Files selected for processing (1)
packages/bruno-cli/docker/smoke-test.sh
Address CodeRabbit review feedback:
- Add 'text' language identifier to the image-structure tree code fence
(markdownlint MD040).
- Add a one-line note in the run-collection section pointing Windows
PowerShell / CMD users at ${PWD} / %cd% as the $(pwd) equivalent.
The bash examples themselves remain unchanged - non-Bash shells now have
explicit guidance without rewriting every command block.
Addresses CodeRabbit review: '-v "$COLLECTION_PATH:/bruno"' fails on Windows-style absolute paths (e.g. C:\\repo\\collection) because the drive-letter colon collides with -v's host:container separator. Switch to --mount type=bind,source=...,target=..., which uses '=' as the key separator and accepts Windows paths verbatim. Behavior is identical on Linux/macOS (where current CI runs).
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 91-96: The blockquote under "Cross-platform note:" contains a
blank quoted line (a standalone ">") that triggers markdownlint MD028; remove
that empty ">" line so the blockquote flows directly into the list items
(PowerShell: `${PWD}` and CMD: `%cd%`) and keep the list contiguous within the
same blockquote to satisfy MD028.
🪄 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: f6ae8c92-1db4-42e3-b0f8-c57504088434
📒 Files selected for processing (1)
packages/bruno-cli/docker/README.md
Description
JIRA : https://usebruno.atlassian.net/browse/BRU-1220
Adds the official Docker image assets for Bruno CLI — alpine and debian variants — along with smoke tests and Docker Hub overview README.
Notable image properties:
alpine(musl, smallest) anddebian(glibc, for native modules / SSL edge cases)USER node, UID 1000)BRUNO_VERSIONbuild-arg with semver validationorg.opencontainers.image.source,description,licenses,title,version,url,documentation) — auto-links GHCR package back to this repoContribution Checklist:
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
New Features
Documentation
Quality & Tests