Files
watch_sceen_ai/docker-entrypoint.sh
EJClaw 3d76cd6c52 fix(docker): run official bot (dave/bot.mjs) in container, not selfbot join.mjs
The `join` entrypoint command now execs `node dave/bot.mjs` and forwards args;
Dockerfile comments/env notes updated from DISCORD_SELFBOT_TOKEN to the official
bot path. Rebuilt watch_sceen_ai:test on .9 and verified in-container:
  * smoke -> 4 passed
  * voice -> eyes-free mock loop runs
  * join  -> LIVE bot join (테스트봇#9029) to guild 사지방 / channel 일반, Ready, clean leave

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-16 18:36:24 +09:00

25 lines
901 B
Bash

#!/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/bot.mjs — LIVE official-bot voice join (needs .env
# mounted; honors RUN_MS / GUILD_ID / CHANNEL_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 bot.mjs "$@" ;;
shell) exec bash ;;
*) exec "$cmd" "$@" ;;
esac