forked from USArmyResearchLab/Dshell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 897 Bytes
/
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
FROM ubuntu:14.04
# install depdencies
RUN apt-get update && apt-get install -y \
python-crypto \
python-dpkt \
python-ipy \
python-pypcap \
python-pip \
wget \
git
RUN pip install pygeoip
# Download the latest version of the code from GitHub
WORKDIR /opt/
RUN git clone https://github.com/USArmyResearchLab/Dshell.git
# download and gunzip GeoIP files
WORKDIR /opt/Dshell/share/GeoIP/
RUN wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
RUN wget http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
RUN wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
RUN wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
RUN gunzip *.gz
# make Dshell
WORKDIR /opt/Dshell/
RUN make
# Used to mount pcap from a host OS directory
VOLUME ["/mnt/pcap"]
CMD ["/opt/Dshell/dshell"]