This repository has been archived on 2026-10-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
opencode-sandbox/SPEC.md
Jarek Rozanski 134a7e16ae
Project
2026-09-27 10:59:40 +02:00

19 lines
No EOL
1.1 KiB
Markdown

# OpenCode Container based sandbox
The sandbox creates a rootless Podman based container that runs pinned and cryptographically pinned version of Opencode.
The container launches with current directory as working directory and was read-write permissions.
The container launches with current user's opencode configureation. User is able to modify the opencode config inside the container. All containers share this config so user can switch between workdirs with same config.
The Makefile has 3 targets:
- build - to rebuild containers image
- opencode - starts opencode TUI in container
- shell - opens shell in the container
The container uses small mainstream linux distro (find which is smallest ... Fedora, Ubuntu, etc ... avoid incomplete distros like Alpine)
The container has Java JDK 24, latest LTS Node, pnpm, git, curl, etc installed; use composed images.
The container when running has its own network.
We need to be able to connect this container to other dev containers.
This will be used predominantly on MacOS, so do proper verification of how Podman runs on Mac, SELinux concerns, etc.