Deploy, switch, inspect, and tear down VSS with setup.sh. Use this skill only
for sample-applications/video-search-and-summarization. Ground every answer in
the repository files - especially setup.sh and docker/compose.*.yaml - and do
not invent flags, services, ports, or variables. Run the commands yourself and
relay the output; do not hand the deploy command to the user (the lone
exception is --setenv, see below).
Environment setup (run first)
This skill drives the Video Search & Summarization app through its real source files, so the VSS application must be present and you must run commands from its app root. Do this before anything else, and it works whether or not the VSS source is already in your workspace.
Run the bundled bootstrap. It first tries to find an existing VSS checkout -
walking up from the current directory and inspecting the enclosing git repo - and
reuses it without ever re-cloning. Only when no checkout is found does it do a
shallow, single-branch, sparse checkout of just
sample-applications/video-search-and-summarization from main. It prints the
resolved app root on stdout:
# SKILL_DIR is THIS skill's own directory (shown to you when the skill loads);
# in-repo it is .github/skills/vss-deploy. Works the same if the skill is installed standalone.
SKILL_DIR=".github/skills/vss-deploy"
APP_ROOT="$(bash "$SKILL_DIR/scripts/vss-bootstrap.sh")"
cd "$APP_ROOT"
Every command below assumes the working directory is this APP_ROOT. To pull
from a fork/branch or reuse a specific checkout dir, override VSS_REPO_URL,
VSS_REPO_BRANCH, or VSS_CLONE_DIR before running it.
Mode routing
| User says | Mode flag | UI URL |
|---|---|---|
| "summary" / "summarize videos" / "summary only" | --summary |
http://<host-ip>:12345/ |
| "search" / "search my videos" / "search only" | --search |
http://<host-ip>:12345/ |
| "both" / "dual" / "side by side" / "two UIs" | --summary --search (alias --dual) |
…/summary/ and …/search/ |
| "unified" / "one UI" / "search over summaries" / "all" | --summary-and-search (alias --unified, --all) |
http://<host-ip>:12345/ |
If the user is ambiguous, ask which mode; do not default silently.
Quick deployment flow
-
Work from the app root:
cd sample-applications/video-search-and-summarization -
Provide config + credentials.
setup.shreads everything from the shell environment and aborts on the first missing required var. The repository now provides.env.exampleas a general application template, but this skill keeps config and generated secrets split so credentials never enter a committed file:- Non-secret config - models, ports, tuning - lives in committed
vss.config.env. - Credentials are generated at runtime into the gitignored
vss.secrets.envbyscripts/gen-secrets.sh(strong random values, created once and reused so data volumes stay valid).
Generate secrets once, then source both files in the same shell:
./.github/skills/vss-deploy/scripts/gen-secrets.sh # makes vss.secrets.env if absent source .github/skills/vss-deploy/vss.config.env source .github/skills/vss-deploy/vss.secrets.envCommon to every mode:
MINIO_ROOT_USER,MINIO_ROOT_PASSWORD,POSTGRES_USER,POSTGRES_PASSWORD,RABBITMQ_USER,RABBITMQ_PASSWORD. Mode-specific model vars (VLM_MODEL_NAME,ENABLED_WHISPER_MODELS,OD_MODEL_NAMEfor summary;MULTIMODAL_EMBEDDING_MODELfor search/dual;TEXT_EMBEDDING_MODELfor unified) ship with defaults invss.config.env- seereferences/env-vars.mdfor the full table. To inject your own credentials (vault/CI) instead of random ones, export them before runninggen-secrets.sh- it reuses any credential already set. - Non-secret config - models, ports, tuning - lives in committed
-
Dry-run first when unsure - append
configto render the resolved.env/compose without starting containers, then review before the real deploy:source setup.sh --summary config # or --search / --summary --search / --summary-and-search -
Deploy - run it yourself.
setup.shmust be sourced (it usesreturnand exports env while building the Compose command), but it does not need the user's interactive shell: deploy usesdocker compose up -d(detached), so containers keep running after the subshell exits. First bring any prior stack down so a stale/wrong-mode deployment can't collide, then deploy - run the whole chain in onebash -cinvocation:bash -c ' source setup.sh --stop # clear any running stack first ./.github/skills/vss-deploy/scripts/gen-secrets.sh # secrets if absent source .github/skills/vss-deploy/vss.config.env source .github/skills/vss-deploy/vss.secrets.env source setup.sh --summary # the chosen mode 'Run this in the background (
run_in_background: true) or with a long timeout. Before Compose starts,setup.shlaunches a transientvss-model-downloadcontainer on loopback port8640when the selected OD artifact or an OVMS VLM/split LLM artifact is missing. It submits REST jobs, waits up toMODEL_DOWNLOAD_JOB_TIMEOUTper job (default5400seconds), writes failed service logs toov_models/model-download-*.log, removes the transient container, and only then runsdocker compose up -d.Only exception:
--setenvexists solely to leave env vars in the user's interactive shell for later manual use - a subshell can't do that, so for that verb only, give the user the!-prefixed command to run themselves. -
Wait for health, then print URLs (see
scripts/wait-health.sh):./.github/skills/vss-deploy/scripts/wait-health.sh "${HOST_IP:-localhost}" "${APP_HOST_PORT:-12345}"
Mode aliases and config-only inspection
setup.sh normalizes --summary --search and --search --summary to --dual;
--summary-and-search, --search-and-summary, and --all to --unified;
config to --dual config; config --summary to --summary config; and
--down to --stop. Use config mode to verify the resolved Compose without
starting containers:
source setup.sh --summary config
source setup.sh --search config
source setup.sh --summary --search config
source setup.sh --summary-and-search config
Choose OVMS, vLLM, CPU, or GPU
Default summarization backend is OVMS (ovms-service, profile ovms) from
docker/compose.summary.yaml.
source setup.sh --summary # OVMS CPU default
VLM_TARGET_DEVICE=GPU source setup.sh --summary # OVMS GPU for VLM
LLM_TARGET_DEVICE=GPU OVMS_LLM_MODEL_NAME=<llm> source setup.sh --summary # OVMS GPU for LLM
ENABLE_VLLM=true source setup.sh --summary # vLLM CPU backend
ENABLE_VLLM_GPU=true source setup.sh --summary # experimental vLLM XPU/GPU backend
ENABLE_EMBEDDING_GPU=true source setup.sh --search # GPU for search embeddings
For vLLM, setup.sh adds docker/compose.vllm.yaml, starts vllm-cpu-service
(profile vllm) on host port 8200, and uses VLM_MODEL_NAME for both
captioning and final summary. Experimental ENABLE_VLLM_GPU=true instead adds
docker/compose.vllm.xpu.yaml, selects profile vllm-xpu, and disables OVMS.
For OVMS GPU, setup.sh adds
docker/compose.gpu_ovms.yaml and switches ovms-service to
openvino/model_server:2026.1-gpu.
The skill's fresh bash -c deployment flow prevents derived OVMS storage names
from leaking between runs. If switching from OVMS to vLLM manually in the same
interactive shell, first run
unset VLM_STORAGE_MODEL_NAME LLM_STORAGE_MODEL_NAME; otherwise Compose can
reuse an OVMS storage alias that vLLM does not serve.
Lifecycle: bring down or reset
Run these yourself via bash -c 'source setup.sh …'. --stop/--down/
--clean-data are mode-agnostic and need no env vars.
source setup.sh --stop # stop/remove containers across all VSS overlays/profiles
source setup.sh --down # alias for --stop
source setup.sh --clean-data # also removes the VSS application data volumes
source setup.sh --help # full help
--clean-data removes docker_minio_data, docker_pg_data, docker_vdms-db,
docker_audio_analyzer_data, docker_data-prep, and docker_collector_signals.
It does not remove the host-backed ov_models/ model cache.
Default ports & URLs
HOST_IP is auto-detected by setup.sh; APP_HOST_PORT defaults to 12345.
| Surface | URL |
|---|---|
| UI (summary / search / unified) | http://<HOST_IP>:<APP_HOST_PORT>/ |
| UI (dual mode) | …/summary/ and …/search/ |
| Pipeline Manager API + docs | …/manager/docs, health …/manager/health |
| Data Prep docs (search modes) | http://<HOST_IP>:7890/docs |
| Embedding server docs (search modes) | http://<HOST_IP>:9777/docs |
Troubleshooting ("why won't vss come up")
ERROR: <VAR> is not set→ missing shell env var; re-sourcevss.config.envvss.secrets.env(step 2).
Invalid VECTORDB_BACKEND→ setVECTORDB_BACKENDtovdmsormilvus.- Health never goes green →
docker compose psfor crashed containers, thendocker compose logs <service>. The heavy ones are model servers (ovms,vlm-ov/vllm, embedding). - Wrong/partial stack already running →
source setup.sh --stopthen redeploy. - Setup fails before Compose starts → inspect the reported
ov_models/model-download-*.log; if loopback port8640is occupied, setMODEL_DOWNLOAD_HOST_PORTto a free port and rerun.
For anything past these basics - model-server crashes, OVMS token/cache/GPU
errors, host model-cache or model-download permission failures, search returning no results,
NPU/OpenGL issues - hand off to the vss-troubleshoot skill at
.github/skills/vss-troubleshoot/SKILL.md and the canonical guide at
docs/user-guide/troubleshooting.md.
References
- Exact mode-to-overlay/profile/service/URL mapping:
references/modes-and-overlays.md. - Required and optional environment variables:
references/env-vars.md.