Add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter #3

Merged
kobim merged 4 commits from feature/webpack-monolith-image-parametrized-options into main 2025-02-21 11:21:14 +00:00
18 changed files with 9699 additions and 43 deletions
Showing only changes of commit 9ee391fee8 - Show all commits

View File

@@ -23,9 +23,8 @@ WORKDIR /tmp
RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && \
cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null && \
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
RUN sudo apt-get update && sudo apt-get install -y telegraf
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list && \
sudo apt-get update && sudo apt-get install -y telegraf
# Create and activate a virtual environment
RUN python3 -m venv ./venv
@@ -35,7 +34,7 @@ ENV PATH="/tmp/venv/bin:$PATH"
COPY requirements.txt ./requirements.txt
RUN ./venv/bin/pip install -r ./requirements.txt
# Copy the application
# Copy files
COPY main.py .
COPY utils/ ./utils
COPY telegraf.conf ./telegraf.conf

View File

@@ -6,9 +6,6 @@ services:
- build-extension:/tmp/webrtc-internals-exporter
shm_size: "2g"
attach: false
depends_on:
telegraf:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
interval: 5s