Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.29 KB

File metadata and controls

33 lines (21 loc) · 1.29 KB

OpenCode — OpenShell Sandbox Deployment

This directory contains an OpenShell-compatible Containerfile for running OpenCode inside an OpenShell sandbox.

Prerequisites

Build and Run

podman build --platform linux/amd64 -t opencode-sandbox:latest -f Containerfile.openshell .
openshell sandbox create --from opencode-sandbox:latest

What Containerfile.openshell does

Builds on the shared base image (quay.io/hmoghani/openshell-base) which provides the sandbox user, system packages, and OpenShell entrypoint. This flavor adds:

  • Node.js and npm (from UBI repos)
  • OpenCode via npm (version pinned, MIT)

RHOAI Deployment

For deploying OpenCode on Red Hat OpenShift AI with OAuth, kustomize manifests, and production configuration, see DEPLOYMENT.md.

Notes

  • OpenShell's supervisor takes over as PID 1 and does not automatically run OpenCode. Start it manually inside the sandbox.
  • Build with --platform linux/amd64 when targeting x86_64 clusters from Apple Silicon machines.
  • Tested on OpenShell v0.0.58, OpenShift 4.21 (June 2026). OpenCode version 1.17.1.