Auto-deploy skillset on container start for portable skill resolution
Add entrypoint logic to detect and run the skillset deploy script on container start. Detection order: SKILLSET_CONTAINER_PATH env var, then ~/skillset dedicated mount, then /workspace/skillset fallback. The deploy script (from the skillset repo) creates relative symlinks that resolve inside the container regardless of the host path layout. Also adds SKILLSET_PATH volume mount option to docker-compose files and documents SKILLSET_CONTAINER_PATH in .env.example for hosts where the skillset lives in a workspace subdirectory.
This commit is contained in:
@@ -42,6 +42,12 @@ services:
|
||||
# SSH keys (read-only) — for git push/pull
|
||||
- ${SSH_KEY_PATH:-~/.ssh}:/home/developer/.ssh:ro
|
||||
|
||||
# Optional: mount skillset repo for automatic skill/instruction deployment.
|
||||
# The entrypoint runs deploy-skills.sh --bootstrap on start, creating
|
||||
# relative symlinks that resolve inside the container regardless of
|
||||
# where the repo lives on the host. Set SKILLSET_PATH in .env.
|
||||
# - ${SKILLSET_PATH}:/home/developer/skillset
|
||||
|
||||
# Optional: mount opencode config directory (persists config changes across restarts)
|
||||
# Includes opencode.json, oh-my-opencode-slim.json, skills, etc.
|
||||
# When mounted, OPENCODE_PROVIDER auto-config is skipped if opencode.json exists.
|
||||
|
||||
Reference in New Issue
Block a user