mirror of
https://github.com/okxlin/release-factory.git
synced 2026-09-22 16:02:15 +00:00
97 lines
3.0 KiB
Bash
97 lines
3.0 KiB
Bash
# Common coding-agent environment
|
|
# Match these to the host bind-mount owner when you want /workspace, /cache,
|
|
# and the OpenCode HOME directories to stay writable inside the container.
|
|
USER_UID=1000
|
|
USER_GID=1000
|
|
OPENCODE_BOOTSTRAP=1
|
|
OMO_AUTO_INSTALL=0
|
|
ACP_AUTO_START=0
|
|
OPENCODE_RUNTIME_MODE=acp
|
|
KEEPALIVE_COMMAND=sleep infinity
|
|
CONTAINER_WORKSPACE=/workspace
|
|
CONTAINER_CACHE=/cache
|
|
FIX_WORKSPACE_OWNERSHIP_RECURSIVE=false
|
|
FIX_CACHE_OWNERSHIP_RECURSIVE=false
|
|
ACP_HOST=0.0.0.0
|
|
ACP_PORT=8765
|
|
SERVE_HOST=0.0.0.0
|
|
SERVE_PORT=4096
|
|
OPENCODE_INSTALL_DIR=/home/opencode/.local/share/opencode
|
|
OPENCODE_NPM_BIN_DIR=/home/opencode/.local/bin
|
|
OPENCODE_CONFIG_DIR=/home/opencode/.config/opencode
|
|
OMO_INSTALL_DIR=/home/opencode/.local/share/oh-my-opencode
|
|
|
|
# Recommended persistent mounts follow the official OpenCode home layout:
|
|
# /home/opencode/.config
|
|
# /home/opencode/.agents
|
|
# /home/opencode/.claude
|
|
# /home/opencode/.opencode
|
|
# /home/opencode/.local/share
|
|
# /workspace
|
|
|
|
# ACP validation note:
|
|
# - opencode acp is an ACP transport endpoint, not a generic HTTP health-check target.
|
|
# - preferred smoke test: start runtime in detached mode, inspect logs, then verify `opencode acp` is still present in `ps`.
|
|
|
|
# Runtime secrets: inject at deploy time, never bake into the image or commit real values.
|
|
# Keep provider / gateway credentials out of this template repository.
|
|
# Recommended pattern:
|
|
# export LLM_API_KEY=***
|
|
# export LLM_BASE_URL=<your-compatible-endpoint>
|
|
# export GITHUB_TOKEN=***
|
|
# Then map them into the runtime environment through your deploy system or a local .env file.
|
|
# OpenCode default model wiring.
|
|
# Prefer keeping deploy-level defaults here and reserve ~/.config/opencode/opencode.user.json
|
|
# for advanced manual provider/model/plugin overrides.
|
|
OPENCODE_MODEL=
|
|
OPENCODE_SMALL_MODEL=
|
|
OPENCODE_PROVIDER_ID=
|
|
OPENCODE_EXTRA_PLUGINS=
|
|
OPENAI_API_KEY=
|
|
OPENAI_BASE_URL=
|
|
ANTHROPIC_API_KEY=
|
|
ANTHROPIC_BASE_URL=
|
|
OPENROUTER_API_KEY=
|
|
OPENROUTER_BASE_URL=
|
|
GEMINI_API_KEY=
|
|
GEMINI_BASE_URL=
|
|
GITHUB_TOKEN=
|
|
GIT_AUTHOR_NAME=
|
|
GIT_AUTHOR_EMAIL=
|
|
GIT_COMMITTER_NAME=
|
|
GIT_COMMITTER_EMAIL=
|
|
|
|
# oh-my-opencode non-interactive install defaults.
|
|
# Required upstream flags are always rendered as:
|
|
# --claude=<no|yes|max20>
|
|
# --gemini=<no|yes>
|
|
# --copilot=<no|yes>
|
|
OMO_CLAUDE_MODE=no
|
|
OMO_GEMINI_MODE=no
|
|
OMO_COPILOT_MODE=no
|
|
|
|
# Optional install-time feature toggles for oh-my-opencode
|
|
OMO_OPENAI=0
|
|
OMO_OPENCODE_GO=0
|
|
OMO_OPENCODE_ZEN=0
|
|
OMO_VERCEL_AI_GATEWAY=0
|
|
|
|
# Package selection is always the meta-package oh-my-opencode.
|
|
# The resolver detects AVX2 availability and outputs a second-line
|
|
# baseline flag; the installer exports OH_MY_OPENCODE_FORCE_BASELINE=1
|
|
# when a non-AVX2 x86_64 CPU is detected.
|
|
# Set OMO_PACKAGE to override the package name (AVX2 detection still runs).
|
|
# Set OMO_FORCE_BASELINE=yes|no|auto to control baseline behaviour.
|
|
OMO_PACKAGE=
|
|
OMO_FORCE_BASELINE=auto
|
|
|
|
|
|
# Optional override: append extra install flags verbatim.
|
|
# If set, this bypasses the rendered default flag set above.
|
|
OMO_INSTALL_ARGS=
|
|
|
|
# Dynamic Context Pruning plugin
|
|
DCP_INSTALL=1
|
|
DCP_GLOBAL=1
|
|
DCP_CONFIG_B64=
|