mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-09-26 20:01:57 +02:00
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/.
24 lines
833 B
YAML
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
|