Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
7
5g-uulm-network-monitoring/docker/nginx.Dockerfile
Normal file
7
5g-uulm-network-monitoring/docker/nginx.Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM tiangolo/nginx-rtmp:latest-2024-01-15
|
||||
# Install dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ffmpeg && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENTRYPOINT ["sh", "-c", "nginx && ffmpeg -f lavfi -i testsrc -vf scale=1920x1080 -r 30 -c:v libx264 -pix_fmt yuv420p -b:v 20M -f flv rtmp://localhost/live/test"]
|
||||
22
5g-uulm-network-monitoring/docker/nmcli_default.Dockerfile
Normal file
22
5g-uulm-network-monitoring/docker/nmcli_default.Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Build Stage
|
||||
FROM rust:1.74 AS builder
|
||||
WORKDIR /usr/src/5G_VideoProbe
|
||||
COPY ../src src
|
||||
COPY ../Cargo.* .
|
||||
RUN cargo install -F rtt -F throughput --path .
|
||||
|
||||
# Runtime Stage
|
||||
FROM debian:stable-slim AS runtime
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tshark \
|
||||
gpsd \
|
||||
iputils-ping \
|
||||
ffmpeg \
|
||||
tcpdump \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY ../Rocket.toml /etc/videoprobe/Rocket.toml
|
||||
COPY ../run.sh /run.sh
|
||||
|
||||
COPY --from=builder /usr/local/cargo/bin/videoprobe /usr/local/bin/videoprobe
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
22
5g-uulm-network-monitoring/docker/nmcli_rtt.Dockerfile
Normal file
22
5g-uulm-network-monitoring/docker/nmcli_rtt.Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# Build Stage
|
||||
FROM rust:1.74 AS builder
|
||||
WORKDIR /usr/src/5G_VideoProbe
|
||||
COPY ../src src
|
||||
COPY ../Cargo.* .
|
||||
RUN cargo install -F rtt --path .
|
||||
|
||||
# Runtime Stage
|
||||
FROM debian:stable-slim AS runtime
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tshark \
|
||||
gpsd \
|
||||
iputils-ping \
|
||||
ffmpeg \
|
||||
tcpdump \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY ../Rocket.toml /etc/videoprobe/Rocket.toml
|
||||
COPY ../run.sh /run.sh
|
||||
|
||||
COPY --from=builder /usr/local/cargo/bin/videoprobe /usr/local/bin/videoprobe
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Build Stage
|
||||
FROM rust:1.74 as builder
|
||||
WORKDIR /usr/src/5G_VideoProbe
|
||||
COPY ../src src
|
||||
COPY ../Cargo.* .
|
||||
RUN cargo install -F throughput --path .
|
||||
|
||||
# Runtime Stage
|
||||
FROM debian:stable-slim AS runtime
|
||||
RUN apt-get update && apt-get install -y \
|
||||
tshark \
|
||||
gpsd \
|
||||
iputils-ping \
|
||||
ffmpeg \
|
||||
tcpdump \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY ../Rocket.toml /etc/videoprobe/Rocket.toml
|
||||
COPY ../run.sh /run.sh
|
||||
|
||||
COPY --from=builder /usr/local/cargo/bin/videoprobe /usr/local/bin/videoprobe
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
Reference in New Issue
Block a user