Initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-31 13:36:22 +01:00
commit 931652c494
78 changed files with 46976 additions and 0 deletions

View 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"]

View 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" ]

View 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" ]

View 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 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" ]