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:
@@ -31,6 +31,31 @@ WORKSPACE_PATH=~/projects
|
||||
# Path to SSH keys on host
|
||||
SSH_KEY_PATH=~/.ssh
|
||||
|
||||
# ── Skillset (agent skills and instructions) ─────────────────────────
|
||||
# If you have a skillset repo, the entrypoint auto-deploys skills and
|
||||
# instructions on container start using relative symlinks (portable
|
||||
# across host/container).
|
||||
#
|
||||
# Detection is automatic if the skillset lives directly at the workspace
|
||||
# root (i.e. WORKSPACE_PATH/skillset → /workspace/skillset in container).
|
||||
#
|
||||
# If the skillset lives in a subdirectory of your workspace, set
|
||||
# SKILLSET_CONTAINER_PATH to its location *inside the container*. This
|
||||
# is determined by the workspace mount: whatever is at
|
||||
# WORKSPACE_PATH/<subpath> on the host becomes /workspace/<subpath>
|
||||
# in the container.
|
||||
#
|
||||
# Examples:
|
||||
# Host skillset at ~/projects/skillset → already at /workspace/skillset (auto-detected, no config needed)
|
||||
# Host skillset at ~/projects/tools/skillset → SKILLSET_CONTAINER_PATH=/workspace/tools/skillset
|
||||
# Host skillset at ~/projects/local/skillset → SKILLSET_CONTAINER_PATH=/workspace/local/skillset
|
||||
#
|
||||
# Alternatively, mount the skillset repo at a dedicated path using the
|
||||
# SKILLSET_PATH volume in docker-compose.yml (see comments there). In
|
||||
# that case the entrypoint finds it at ~/skillset automatically.
|
||||
#
|
||||
# SKILLSET_CONTAINER_PATH=
|
||||
|
||||
# ── Locale (defaults to en_US.UTF-8) ─────────────────────────────────
|
||||
# LANG=sv_SE.UTF-8
|
||||
# LANGUAGE=sv_SE:sv
|
||||
|
||||
Reference in New Issue
Block a user