Skip to content

Add custom sandbox image docs for Enterprise VM (Replicated)#562

Draft
rajshah4 wants to merge 3 commits into
mainfrom
add-custom-sandbox-image-docs
Draft

Add custom sandbox image docs for Enterprise VM (Replicated)#562
rajshah4 wants to merge 3 commits into
mainfrom
add-custom-sandbox-image-docs

Conversation

@rajshah4

@rajshah4 rajshah4 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

Adds a new doc page enterprise/custom-sandbox-image.mdx covering how to build and use custom sandbox images in the Enterprise Replicated VM deployment. The page is placed in the Enterprise tab navigation, right after "Quick Start".

Content is sourced from https://github.com/rajshah4/openhands-custom-image and adapted to match the style and structure of the existing Enterprise docs.

What's covered

  • Why use a custom image — faster agent starts, lower setup variance, complex test harness support
  • Benchmark results — real numbers from a Replicated VM run (up to 43x speedup on harness bootstrap, 3.6x end-to-end)
  • How to build your own — base image, Dockerfile pattern, build/push command
  • What to bake in / what to keep out — guidance on what belongs in a custom image
  • Replicated Admin Console configuration — step-by-step fields to set for the custom sandbox image

Files changed

  • enterprise/custom-sandbox-image.mdx — new page
  • docs.json — added enterprise/custom-sandbox-image to the Enterprise tab navigation (after enterprise/quick-start)

This PR was created by an AI agent (OpenHands) on behalf of the user.

@rajshah4 can click here to continue refining the PR

Adds enterprise/custom-sandbox-image.mdx covering:
- Why to use custom sandbox images (speed, reliability, monorepo support)
- Benchmark results from Enterprise Replicated VM (up to 43x speedup)
- How to build and push a custom image from the agent-server base
- What to bake in and what to keep out
- How to configure the custom image in the Replicated Admin Console

Content sourced from https://github.com/rajshah4/openhands-custom-image

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify

mintlify Bot commented Jun 9, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Jun 9, 2026, 12:39 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.


## Reference

- [OpenHands custom image example repo](https://github.com/rajshah4/openhands-custom-image): Dockerfile, benchmark scripts, and analysis tooling for the VS Code custom image example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please move this to the OpenHands organization, so that we're not pointing our public docs to a personal repo?

Comment on lines +38 to +44
```dockerfile
FROM ghcr.io/openhands/agent-server:1.23.0-python
```

Pin a specific version tag to ensure reproducible builds. Check
[ghcr.io/openhands/agent-server](https://github.com/OpenHands/OpenHands/pkgs/container/agent-server)
for the latest available tags.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add a note here that agent server is updated on every release of OHE, so users should rebuild their images before upgrading?

Would phrase as "To get the latest features of OpenHands..." rather than focusing on the compatibility problems we've experienced in the past.

5. Publish the image to a registry and point the Replicated installer at it.

<Warning>
Do not override the entrypoint or replace the runtime contract of the base image. The installer

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No action in the docs for this, but there's nothing stopping us from allowing custom entrypoints as long as we're clear that they must start up the agent server.

That would enable running scripts or backgrounding additional processes on startup.

Would need changes to the installer to support this, though.

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.

3 participants