-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (32 loc) · 957 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
35
36
37
38
# Start with ubuntu image
FROM ubuntu:22.04
# Set working directory
WORKDIR /mudscope
# Install dependencies
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install \
git default-jre maven tcpdump wireshark build-essential libpcap-dev \
libtool pkg-config flex libbz2-dev autotools-dev byacc python3-pip -y
# Install mudgee
RUN git clone https://github.com/ayyoob/mudgee.git && \
cd mudgee && \
mvn clean install && \
cd ..
# Install nfpcapd
RUN git clone https://github.com/phaag/nfdump.git && \
cd nfdump && \
git checkout v1.6.24 && \
./autogen.sh && \
./configure --enable-nfpcapd && \
make && \
make install && \
cp ./bin/.libs/libnfdump-1.6.24.so /usr/lib/ && \
cd /mudscope
# Install MUDscope
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . /mudscope/
RUN pip3 install -e .
# Copy examples
COPY examples/ /mudscope/examples/