Skip to content

docs: describe a volume at /opt/containerbase - #8397

Open
viceice wants to merge 1 commit into
viceice/test/volumefrom
viceice/docs/volume
Open

viceice wants to merge 1 commit into
viceice/test/volumefrom
viceice/docs/volume

Conversation

@viceice

@viceice viceice commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changes

  • New "Volume at /opt/containerbase" section in docs/custom-base-image.md:
    • tools are installed again on first use, so the network is needed;
    • files in /usr/local/bin and /usr/local/lib and v2 shell tools are lost;
    • custom entrypoints must run containerbase-cli init tool all;
    • a copy of the image's folder works, use a disk-backed emptyDir;
    • only BuildKit builds record the list; multi-stage builds copy /opt/containerbase and /var/lib/containerbase from the same stage;
    • docker buildx/docker compose go through the shims, so docker info installs them on an empty volume;
    • a command a v2 shell tool took over at build time runs the older tool on a volume.
  • docs/custom-root-ca.md: mount a custom cacerts at runtime with a volume.
  • docs/linking.md links the new section.

Context

Please select one of the following:

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Docs written by Claude Opus 5.5 (Claude Code).

Use of AI in replying to PR comments

Who answers review comments:

  • @viceice will read and reply directly. Name the account.
  • An agent will draft replies and @viceice will read them before they are posted. Name the account.
  • An agent will draft replies and reply autonomously. This is heavily discouraged, and we prefer that there are humans in the loop
  • Nobody has explicitly committed to replying.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified tests

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@viceice
viceice added this pull request to stack #8398 November 20, 2026 10:00
@qodo-code-review

qodo-code-review Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Document mounting a volume at /opt/containerbase

📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Explain tool initialization, lazy downloads, and files hidden by a volume at /opt/containerbase.
• Document copied-image volumes, custom entrypoints, and disk-backed storage.
• Link volume guidance from tool recovery and Java certificate documentation.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 5af54d4
Diagram

graph TD
  A["Image tool list"] --> B{"Lists match?"}
  B -->|No| C["Initialize volume"] --> D["Tool shims"] --> E["First call"] --> F["Download tools"]
  B -->|Yes| D
Loading
High-Level Assessment

A dedicated section in the custom-base-image guide, with links from the relevant tool-recovery and certificate guides, keeps the volume guidance together while making it discoverable where readers need it.

Files changed (3) +45 / -0

Documentation (3) +45 / -0
custom-base-image.mdExplain /opt/containerbase volume behavior +41/-0

Explain /opt/containerbase volume behavior

• Adds guidance for empty and copied-image volumes, including initialization, first-use downloads, hidden files, custom entrypoints, and disk-backed storage.

docs/custom-base-image.md

custom-root-ca.mdClarify Java certificate mounting with a volume +2/-0

Clarify Java certificate mounting with a volume

• Explains that a build-time Java certificate store is hidden by a volume at '/opt/containerbase' and should instead be mounted at runtime.

docs/custom-root-ca.md

linking.mdConnect tool recovery guidance to volume initialization +2/-0

Connect tool recovery guidance to volume initialization

• Links the new volume section and explains how initialization restores shims before missing tools are installed on first use.

docs/linking.md

@qodo-code-review

qodo-code-review Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@viceice
viceice force-pushed the viceice/docs/volume branch 8 times, most recently from 1202f09 to a082a0e Compare November 23, 2026 13:03
Co-Authored-By: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
@viceice
viceice force-pushed the viceice/docs/volume branch from a082a0e to 5af54d4 Compare November 23, 2026 15:01
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.

Make /opt/containerbase usable as a volume mount

1 participant