build(docker): GPU-ready test image for .9 (CUDA 12.4 + py3.11 + node22/ffmpeg)
Bundles the M1 milestone: mock voice pipeline (wsai) + dave/ selfbot voice joiner. Entrypoint dispatches smoke/voice/mock/gpu/join/shell. .env mounted at runtime (not baked). Built GPU-capable via NVIDIA CDI so later STT/TTS drop in. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
24
docker-entrypoint.sh
Normal file
24
docker-entrypoint.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# Test/run dispatcher for the watch_sceen_ai container.
|
||||
#
|
||||
# smoke (default) pytest smoke suite (mock pipeline, no deps, no GPU)
|
||||
# voice python -m wsai --voice (eyes-free mock voice loop demo)
|
||||
# mock python -m wsai (full mock flow, few frames)
|
||||
# gpu nvidia-smi — prove the GPU is visible inside the container
|
||||
# join node dave/join.mjs — LIVE selfbot voice join (needs .env
|
||||
# mounted; honors RUN_MS / GUILD_ID / CHANNEL_ID / SELF_ID)
|
||||
# shell drop to bash
|
||||
set -euo pipefail
|
||||
cd /app
|
||||
|
||||
cmd="${1:-smoke}"; shift || true
|
||||
|
||||
case "$cmd" in
|
||||
smoke) exec python -m pytest -q ;;
|
||||
voice) exec python -m wsai --voice ;;
|
||||
mock) exec python -m wsai ;;
|
||||
gpu) exec nvidia-smi ;;
|
||||
join) cd dave && exec node join.mjs ;;
|
||||
shell) exec bash ;;
|
||||
*) exec "$cmd" "$@" ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user