-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
54 lines (44 loc) · 1.25 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.20 as builder
WORKDIR /workspace
RUN apk add --no-cache --update \
linux-headers \
alpine-sdk \
coreutils \
bash \
git \
flex \
bison
RUN git clone https://github.com/netsniff-ng/netsniff-ng.git
WORKDIR /workspace/netsniff-ng
RUN git checkout v0.6.8
RUN mkdir /etc/netsniff-ng && cp trafgen_stddef.h /etc/netsniff-ng
RUN ./configure && make && mkdir /usr/local/sbin && make install
FROM alpine:3.20
LABEL org.label-schema.description="Useful network related tools"
LABEL org.label-schema.vendor=travelping.com
LABEL org.label-schema.copyright=travelping.com
LABEL org.label-schema.version=1.13.0
COPY --from=builder /usr/local/sbin/bpfc /usr/local/sbin/bpfc
COPY --from=builder /usr/local/sbin/netsniff-ng /usr/local/sbin/netsniff-ng
COPY --from=builder /usr/local/sbin/trafgen /usr/local/sbin/trafgen
RUN apk add --no-cache --update \
bash \
bird \
conntrack-tools \
coreutils \
curl \
drill \
iperf3 \
iproute2 \
iptables \
iputils \
ip6tables \
keepalived \
net-tools \
nftables \
socat \
ethtool \
mtr \
tcpdump \
busybox-extras \
lz4 zstd