Files
XC_VM/tools/test-install/docker-compose.yml
T
Divarion_D 169e2cca2a feat(test-install): e2e streaming test through the panel (streamtest)
New streamtest-gen / -gen-stop / -backup / streamtest commands: configure the panel once by hand, snapshot the DB, then restore + run repeatably. The container runner rebuilds caches, launches the test-stream-generator, fetches the panel's output m3u for the test line, and runs the checker (aggregate JSON + per-stream logs copied out). STREAMTEST.md documents the flow; docker-compose mounts tools/ and exposes port 8088; ignore out/, fixtures/, graphs/.
2026-08-23 13:49:37 +03:00

24 lines
833 B
YAML

services:
xcvm-test:
build:
context: .
dockerfile: Dockerfile
image: xcvm-test:latest
container_name: xcvm-test-install
hostname: xcvm-test
privileged: true
cgroup: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- ../../dist/XC_VM.zip:/opt/xcvm-install/XC_VM.zip:ro
# Test tooling: stream generator (+ sample.mp4) and the queue checker.
# Consumed by `test_release.sh streamtest`. Read-only — the generator
# writes HLS segments to a mkdtemp under /tmp, not here.
- ../../tools:/opt/xcvm-tools:ro
ports:
- "${XCVM_HTTP_PORT:-8880}:${XCVM_INSTALL_HTTP_PORT:-80}"
- "${XCVM_HTTPS_PORT:-8443}:${XCVM_INSTALL_HTTPS_PORT:-443}"
# Test stream generator (streamtest)
- "${XCVM_STREAM_PORT:-8088}:8088"
stop_signal: SIGRTMIN+3