Add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter #3
@@ -23,9 +23,8 @@ WORKDIR /tmp
|
|||||||
RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \
|
RUN wget -q https://repos.influxdata.com/influxdata-archive_compat.key && \
|
||||||
echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && \
|
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 && \
|
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
|
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
|
||||||
RUN sudo apt-get update && sudo apt-get install -y telegraf
|
|
||||||
|
|
||||||
# Create and activate a virtual environment
|
# Create and activate a virtual environment
|
||||||
RUN python3 -m venv ./venv
|
RUN python3 -m venv ./venv
|
||||||
@@ -35,7 +34,7 @@ ENV PATH="/tmp/venv/bin:$PATH"
|
|||||||
COPY requirements.txt ./requirements.txt
|
COPY requirements.txt ./requirements.txt
|
||||||
RUN ./venv/bin/pip install -r ./requirements.txt
|
RUN ./venv/bin/pip install -r ./requirements.txt
|
||||||
|
|
||||||
# Copy the application
|
# Copy files
|
||||||
COPY main.py .
|
COPY main.py .
|
||||||
COPY utils/ ./utils
|
COPY utils/ ./utils
|
||||||
COPY telegraf.conf ./telegraf.conf
|
COPY telegraf.conf ./telegraf.conf
|
||||||
|
@@ -6,9 +6,6 @@ services:
|
|||||||
- build-extension:/tmp/webrtc-internals-exporter
|
- build-extension:/tmp/webrtc-internals-exporter
|
||||||
shm_size: "2g"
|
shm_size: "2g"
|
||||||
attach: false
|
attach: false
|
||||||
depends_on:
|
|
||||||
telegraf:
|
|
||||||
condition: service_healthy
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
|
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
Reference in New Issue
Block a user