Skip to content

docs: use mounts for examples#91

Merged
feloy merged 1 commit into
openkaiden:mainfrom
feloy:doc-mount
Jun 17, 2026
Merged

docs: use mounts for examples#91
feloy merged 1 commit into
openkaiden:mainfrom
feloy:doc-mount

Conversation

@feloy

@feloy feloy commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Update examples in README to use podman mount feature.

@feloy feloy changed the title doc(example): use mounts for examples docs(example): use mounts for examples Jun 16, 2026
@feloy feloy changed the title docs(example): use mounts for examples docs(example): use mounts for examples Jun 16, 2026
@feloy feloy changed the title docs(example): use mounts for examples chore(docs): use mounts for examples Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@feloy feloy changed the title chore(docs): use mounts for examples docs: use mounts for examples Jun 16, 2026
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 97897e9a-2c0d-4c73-9e3e-faad5f525f37

📥 Commits

Reviewing files that changed from the base of the PR and between fc74ddc and 988a798.

📒 Files selected for processing (1)
  • README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md

📝 Walkthrough

Walkthrough

README example commands for sandbox creation across all agent/provider flows (Anthropic, OpenCode+Anthropic, Ollama, OpenAI, Vertex AI) are updated to use --driver-config-json with Podman bind mounts instead of --upload .. The Vertex AI example is further simplified by collapsing the multi-step bashrc injection, sandbox upload, and sandbox connect sequence into a single openshell sandbox create command with inline environment variables.

Changes

README Sandbox Example Updates

Layer / File(s) Summary
Anthropic and OpenCode/Anthropic sandbox examples
README.md
Code fence formatting corrected; --driver-config-json bind mount replaces --upload . in the Claude Code + Anthropic and OpenCode + Anthropic example blocks.
Ollama, OpenAI, and Vertex AI sandbox examples
README.md
--driver-config-json bind mount replaces --upload . in the Ollama and OpenAI examples; the Vertex AI example removes the bashrc injection + sandbox upload + sandbox connect sequence, replacing it with a single openshell sandbox create command using bind mounts and inline environment variables.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'docs: use mounts for examples' is concise and directly related to the main change: updating README examples to use podman mount feature instead of copying sources.
Description check ✅ Passed The description 'Update examples in README to use podman mount feature' is directly related to the changeset, accurately summarizing the core modification of the pull request.
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.


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

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
README.md (1)

509-538: 💤 Low value

Clarify presentation consistency: show both old and new approaches in all examples, or only new.

The first two examples (Claude + Anthropic at 509–538 and OpenCode + Anthropic at 542–571) show both the old --upload . approach and the new --driver-config-json mount approach in a single code block, separated by a comment. However, the OpenAI example (617–636) appears to replace --upload . inline (line 632 marked as changed) without showing both approaches side-by-side for comparison.

For consistency and to help users migrate, either:

  • Show both old and new in all examples (as in Claude/OpenCode + Anthropic), or
  • Simplify all to show only the new approach (removing the old code entirely)

The current mixed presentation may confuse readers about which style the documentation prefers.

Also applies to: 542-571, 617-636

🤖 Prompt for 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.

In `@README.md` around lines 509 - 538, The README documentation shows
inconsistent presentation of migration approaches across examples. Some examples
(Claude + Anthropic and OpenCode + Anthropic) display both the old `--upload .`
approach and the new `--driver-config-json` mount approach side-by-side in a
single code block separated by comments, while the OpenAI example shows only the
new approach inline. Standardize the presentation by choosing either to show
both old and new approaches in all examples separated by clarifying comments (to
help users migrate), or simplify all examples to show only the new approach
(removing the old code entirely) and apply this chosen style consistently across
all provider examples in the documentation.
🤖 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 `@README.md`:
- Line 530: The NVIDIA documentation link on lines 530 and 563 in README.md
contains an invalid anchor fragment `#podman-driver-config-mounts` that does not
exist on the NVIDIA documentation page. Fix this by either verifying and
correcting the anchor to point to the actual section name on the NVIDIA docs
page, or remove the anchor fragment entirely to link to the base documentation
URL. Apply the same correction to both locations where this invalid link
appears.

---

Nitpick comments:
In `@README.md`:
- Around line 509-538: The README documentation shows inconsistent presentation
of migration approaches across examples. Some examples (Claude + Anthropic and
OpenCode + Anthropic) display both the old `--upload .` approach and the new
`--driver-config-json` mount approach side-by-side in a single code block
separated by comments, while the OpenAI example shows only the new approach
inline. Standardize the presentation by choosing either to show both old and new
approaches in all examples separated by clarifying comments (to help users
migrate), or simplify all examples to show only the new approach (removing the
old code entirely) and apply this chosen style consistently across all provider
examples in the documentation.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 35d324e1-6ac4-444c-bb08-470dfba5d70e

📥 Commits

Reviewing files that changed from the base of the PR and between 50f27de and fc74ddc.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md
@feloy feloy force-pushed the doc-mount branch 2 times, most recently from 9c21865 to c1d542b Compare June 16, 2026 11:54
@feloy feloy requested review from benoitf and jeffmaury June 16, 2026 12:04
Comment thread README.md
$ openshell sandbox create \
--from sandbox_image:claude_vertexai \
--upload . \
--env CLAUDE_CODE_USE_VERTEX=1 \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

shouldn't it create first a google-vertex-ai type provider ?
https://docs.nvidia.com/openshell/providers/google-vertex-ai

and then use --provider to give this provider

@feloy feloy Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would prefer to wait for this to stabilize on openshell (NVIDIA/OpenShell#1752 and NVIDIA/OpenShell#1763 are still open) before to document it

@benoitf benoitf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM for the mounting process but I think for vertex ai, it should use now its provider

@feloy feloy enabled auto-merge (squash) June 16, 2026 13:45
Signed-off-by: Philippe Martin <phmartin@redhat.com>
@feloy feloy merged commit eaddd22 into openkaiden:main Jun 17, 2026
8 checks passed
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.

2 participants