feat: add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter
Some checks failed
Build Docker Images for Pull Request / build (pull_request) Failing after 4m0s
Some checks failed
Build Docker Images for Pull Request / build (pull_request) Failing after 4m0s
This commit is contained in:
@@ -3,7 +3,7 @@ services:
|
||||
container_name: selenium-standalone-chromium
|
||||
image: selenium/standalone-chromium:129.0
|
||||
volumes:
|
||||
- ./webrtc-internals-exporter:/tmp/webrtc-internals-exporter:ro
|
||||
- build-extension:/tmp/webrtc-internals-exporter
|
||||
shm_size: "2g"
|
||||
attach: false
|
||||
depends_on:
|
||||
@@ -15,7 +15,10 @@ services:
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
pull_policy: always
|
||||
network_mode: host
|
||||
ports:
|
||||
- "7900:7900"
|
||||
networks:
|
||||
- backend
|
||||
|
||||
telegraf:
|
||||
container_name: telegraf
|
||||
@@ -34,6 +37,25 @@ services:
|
||||
pull_policy: always
|
||||
networks:
|
||||
- backend
|
||||
build-extension:
|
||||
container_name: build-extension
|
||||
image: node:22.14.0-bookworm-slim
|
||||
volumes:
|
||||
- ./webrtc-internals-exporter:/tmp/webrtc-internals-exporter:ro
|
||||
- build-extension:/tmp/webrtc-internals-exporter-build
|
||||
working_dir: /tmp/webrtc-internals-exporter-build/webpack
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
cp -r /tmp/webrtc-internals-exporter/* /tmp/webrtc-internals-exporter-build
|
||||
npm install
|
||||
npm run build
|
||||
environment:
|
||||
- WEBRTC_INTERNALS_EXPORTER_URL=http://collector
|
||||
pull_policy: always
|
||||
networks:
|
||||
- backend
|
||||
|
||||
collector:
|
||||
container_name: collector
|
||||
@@ -46,12 +68,13 @@ services:
|
||||
condition: service_healthy
|
||||
telegraf:
|
||||
condition: service_healthy
|
||||
build-extension:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
- VIDEO_URL=${VIDEO_URL:?"Video URL is required"}
|
||||
ports:
|
||||
- "9092:9092"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
- SOCKET_URL=telegraf
|
||||
- HUB_URL=http://selenium:4444
|
||||
- WEBRTC_INTERNALS_PATH=/tmp/webrtc-internals-exporter
|
||||
pull_policy: always
|
||||
networks:
|
||||
- backend
|
||||
@@ -61,3 +84,6 @@ networks:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.100.0.0/16
|
||||
|
||||
volumes:
|
||||
build-extension:
|
||||
|
Reference in New Issue
Block a user