-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can be useful for building with wolfSSL, and for testing different platforms. Use it in CI to test wolfSSL.
- Loading branch information
Showing
3 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Usage (from within the git repo): | ||
# git submodule update --init | ||
# docker build -t sipp -f docker/Dockerfile . | ||
|
||
FROM debian:12-slim AS build | ||
|
||
ARG FULL='' | ||
ARG WOLFSSL='' | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt \ | ||
--mount=type=cache,target=/var/lib/apt/lists \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
binutils \ | ||
cmake \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
help2man \ | ||
libgsl-dev \ | ||
libpcap-dev \ | ||
libncurses-dev \ | ||
make \ | ||
ninja-build \ | ||
${WOLFSSL:+libwolfssl-dev} \ | ||
${FULL:+libsctp-dev libssl-dev} | ||
|
||
WORKDIR /sipp | ||
COPY CMakeLists.txt ./ | ||
COPY src src | ||
COPY include include | ||
COPY gtest gtest | ||
|
||
ARG DEBUG='' | ||
RUN --mount=type=bind,target=.git,source=.git \ | ||
git config --global --add safe.directory /sipp && \ | ||
cmake . -G Ninja \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DUSE_PCAP=1 \ | ||
-DUSE_GSL=1 \ | ||
${DEBUG:+-DDEBUG=1} \ | ||
${FULL:+-DUSE_SSL=1 -DUSE_SCTP=1} \ | ||
&& ninja | ||
RUN help2man --output=sipp.1 -v -v --no-info \ | ||
--name='SIP testing tool and traffic generator' ./sipp | ||
|
||
FROM debian:12-slim | ||
CMD ["sipp"] | ||
ARG FULL='' | ||
ARG WOLFSSL='' | ||
RUN --mount=type=cache,target=/var/cache/apt \ | ||
--mount=type=cache,target=/var/lib/apt/lists \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
libgsl27 \ | ||
libpcap0.8 \ | ||
libncursesw6 \ | ||
${WOLFSSL:+libwolfssl35} \ | ||
${FULL:+libsctp1 libssl3} | ||
COPY --from=build /sipp/sipp /usr/local/bin/sipp |