-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (29 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG ubuntu_version
ARG sipp_version
FROM ubuntu:${ubuntu_version} as builder
ARG sipp_version
RUN apt-get update && apt-get install -y build-essential cmake apt-utils \
libssl-dev libpcap-dev libsctp-dev libncurses5-dev && \
apt-get autoremove -y && apt-get clean -y
ADD https://github.com/SIPp/sipp/releases/download/v${sipp_version}/sipp-${sipp_version}.tar.gz /
RUN tar -xzf /sipp-${sipp_version}.tar.gz
WORKDIR /sipp-${sipp_version}
RUN cmake . -DUSE_PCAP=1 -DUSE_GSL=1 -DUSE_SSL=1 -DUSE_SCTP=1
RUN make install
WORKDIR /
RUN rm -rf sipp-${sipp_version}*
FROM ubuntu:${ubuntu_version}
ARG sipp_version
LABEL description="SIPp - a SIP protocol test tool"
LABEL sipp-version="${sipp_version}"
LABEL sipp-github-url="https://github.com/SIPp/sipp"
LABEL sipp-github-url="https://github.com/p4irin/sipp"
LABEL maintainer="https://github.com/p4irin"
LABEL author = "https://github.com/p4irin"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && apt-get install -y tzdata openssl libpcap0.8 libsctp1 \
libncurses5 && apt-get autoremove -y && apt-get clean -y
ENV TZ="Europe/Amsterdam"
WORKDIR /
COPY --from=builder /usr/local/bin/sipp /usr/local/bin/
CMD ["sipp"]