forked from NEU-SNS/wehe-py3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (18 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --yes \
apt-utils gcc libc-dev libcap2-bin libmysqlclient-dev python3 python3-pip \
tcpdump tcpreplay tshark wireshark scapy netcat
RUN pip3 install timezonefinder future gevent matplotlib multiprocessing_logging "mysqlclient<2.1.1" \
netaddr prometheus_client psutil reverse-geocode reverse-geocoder \
"tornado<6.0.0" "urllib3<2.0" google-cloud-bigquery
# Allow user nobody to execute tcpdump, and add CAP_NET_RAW capability to the
# tcpdump binary.
RUN chgrp tcpdump /usr/sbin/tcpdump && adduser nobody tcpdump
RUN setcap cap_net_raw=ep /usr/sbin/tcpdump
ADD src /wehe
ADD replayTraces /replayTraces
ADD uuid_prefix_tag.txt /uuid_prefix_tag.txt
WORKDIR /wehe
# You must provide a local hostname argument when you start this image, as well
# as the net interface to listen on.
ENTRYPOINT ["/bin/bash", "./startserver.sh"]