The devcontainer provides a Go development environment with all build tools
needed for the openshift-tests binary. It runs on Podman and works with
Cursor and Claude Code.
Run /origin-dev-setup in Claude Code or Cursor — it walks through every step
interactively and handles OS detection, Podman setup, .env creation, and
container startup.
- Install Podman v4+ and devcontainer CLI (
npm install -g @devcontainers/cli) - macOS: run
podman machine init && podman machine start - Copy
.devcontainer/.env.exampleto.devcontainer/.envand fill in your GCP project ID - Run
gcloud auth application-default loginon the host (credentials are mounted read-only) - Build and start:
devcontainer up --workspace-folder . --docker-path podman - Exec in:
podman exec -it -u vscode -w /workspace origin-dev bash
The container bind-mounts these host directories (all must exist before starting):
~/.config/gcloud— GCP credentials for Vertex AI. Rungcloud auth application-default loginon the host.~/.config/gh— GitHub CLI auth. Rungh auth loginon the host.~/.claude— Claude Code config and conversation history.
If any are missing, create them: mkdir -p ~/.config/gcloud ~/.config/gh ~/.claude
You'll also need to fill in your GCP project ID (ANTHROPIC_VERTEX_PROJECT_ID) in .devcontainer/.env.
podman exec -it -u vscode -w /workspace origin-dev bash
claudeOpen the command palette and run "Dev Containers: Attach to Running Container" > origin-dev.
podman rm -f origin-dev 2>/dev/null
devcontainer up --workspace-folder . --docker-path podman --remove-existing-container- Go IDE tools (gopls, delve, staticcheck)
- Go module dependencies (
go mod download) - Claude Code CLI
- Builds the
openshift-testsbinary (make build)