mirror of
https://github.com/uk0/camostream.git
synced 2026-08-29 08:49:44 +00:00
- E2E test suite: TCP/UDP data integrity, AES-GCM, decoy injection, metrics - PCAP deep analysis: 7-dimension DPI resistance scoring (protocol, size, timing, entropy, RTP consistency, decoy coverage) - Docker Compose multi-container test environment - Traffic stealth analysis with tshark - Verified: 12/12 E2E tests pass, DPI score 81.9/100 with AES-GCM
39 lines
877 B
Docker
39 lines
877 B
Docker
# Stage 1: Build camostream binary
|
|
FROM golang:1.24-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
COPY go.mod ./
|
|
COPY main.go ./
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /camostream main.go
|
|
|
|
WORKDIR /src/sim
|
|
COPY sim/udp_server.go ./
|
|
RUN go mod init udp_echo && CGO_ENABLED=0 GOOS=linux go build -o /udp_server udp_server.go
|
|
|
|
# Stage 2: Runtime with network analysis tools
|
|
FROM alpine:3.20
|
|
|
|
RUN apk add --no-cache \
|
|
tshark \
|
|
tcpdump \
|
|
curl \
|
|
python3 \
|
|
py3-pip \
|
|
bash \
|
|
netcat-openbsd \
|
|
coreutils \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
COPY --from=builder /camostream /usr/local/bin/camostream
|
|
COPY --from=builder /udp_server /usr/local/bin/udp_server
|
|
|
|
# Copy test scripts
|
|
COPY tests/scripts/ /opt/tests/scripts/
|
|
COPY tests/backend/ /opt/tests/backend/
|
|
|
|
RUN chmod +x /usr/local/bin/camostream /usr/local/bin/udp_server
|
|
|
|
WORKDIR /opt/tests
|
|
ENTRYPOINT ["/bin/bash"]
|