Skip to content

Instantly share code, notes, and snippets.

@Dreamacro
Created January 21, 2024 14:04
Show Gist options
  • Save Dreamacro/ea3d666b3007b79f48b0610243a238ce to your computer and use it in GitHub Desktop.
Save Dreamacro/ea3d666b3007b79f48b0610243a238ce to your computer and use it in GitHub Desktop.
secnetperf docker image

secnetperf

from MSQuic secnetperf

requirement

Minimum 4GB of RAM required

alias

alias secnetperf="docker run --rm --init --net host secnetperf"
FROM debian:bullseye-slim as builder
RUN apt update && apt install -y g++ cmake make git wget && \
wget -q https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell_7.4.1-1.deb_amd64.deb && \
dpkg -i powershell_7.4.1-1.deb_amd64.deb && \
git clone --depth 1 https://github.com/microsoft/msquic.git && \
cd msquic && \
git submodule update --init && \
pwsh -c "./scripts/build.ps1 -Config Release -Clean"
FROM debian:bullseye-slim
COPY --from=builder /msquic/artifacts/bin/linux/x64_Release_openssl/secnetperf /usr/bin/secnetperf
COPY --from=builder /msquic/artifacts/bin/linux/x64_Release_openssl/libmsquic.so.2 /lib/libmsquic.so.2
ENTRYPOINT ["/usr/bin/secnetperf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment