parent
c0452b1596
commit
1d84fd5030
|
@ -1,7 +1,11 @@
|
|||
FROM ubuntu
|
||||
MAINTAINER robertoberto
|
||||
MAINTAINER wanderer at git.dotya.ml
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
RUN ln -sf /usr/share/zoneinfo/Europe/Bratislava /etc/localtime
|
||||
RUN apt update
|
||||
RUN apt install -y software-properties-common && add-apt-repository universe
|
||||
RUN apt install -y libgrpc6 libgrpc-dev libgrpc++1 libgrpc++-dev protobuf-compiler-grpc
|
||||
RUN apt-get install -y \
|
||||
bison \
|
||||
build-essential \
|
||||
cmake \
|
||||
|
@ -17,26 +21,35 @@ RUN apt-get update && apt-get install -y \
|
|||
libncurses5-dev \
|
||||
libnuma-dev \
|
||||
libpcap-dev \
|
||||
linux-headers-$(uname -r) \
|
||||
linux-headers-generic \
|
||||
make \
|
||||
mongodb-dev \
|
||||
python-pip \
|
||||
python3-pip \
|
||||
socat \
|
||||
vim
|
||||
vim \
|
||||
clang
|
||||
|
||||
|
||||
|
||||
RUN pip install exabgp
|
||||
|
||||
RUN cd /usr/src; git clone https://github.com/pavel-odintsov/fastnetmon.git
|
||||
RUN cd /usr/src; git clone --progress --verbose https://git.dotya.ml/wanderer/fastnetmon-ng.git
|
||||
RUN cd /usr/src; git clone --progress --verbose https://github.com/ntop/nDPI.git
|
||||
|
||||
RUN export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" && printf "$MAKEFLAGS\n"; \
|
||||
cd /usr/src/nDPI; \
|
||||
git checkout 1.7 && \
|
||||
./autogen.sh && \
|
||||
./configure && \
|
||||
make && make install
|
||||
|
||||
#COPY exabgp_blackhole.conf /etc/exabgp_blackhole.conf
|
||||
|
||||
RUN cd /usr/src/fastnetmon/src; mkdir build; cd build; cmake .. -DDISABLE_PF_RING_SUPPORT=ON; make
|
||||
RUN cd /usr/src/fastnetmon-ng/src; cmake -D"USE_NEW_ATOMIC_BUILTINS=ON" -D"ENABLE_AFPACKET_SUPPORT=ON" -D"ENABLE_GOBGP_SUPPORT=ON" -S. -Bbuild && cmake --build build --target all fastnetmon
|
||||
|
||||
RUN cp /usr/src/fastnetmon/src/fastnetmon.conf /etc/
|
||||
RUN cp /usr/src/fastnetmon/src/build/fastnetmon /usr/bin/
|
||||
RUN cp /usr/src/fastnetmon/src/build/fastnetmon_client /usr/bin/
|
||||
RUN cp /usr/src/fastnetmon-ng/src/fastnetmon.conf /etc/
|
||||
RUN cp /usr/src/fastnetmon-ng/src/build/fastnetmon /usr/bin/
|
||||
RUN cp /usr/src/fastnetmon-ng/src/build/fastnetmon_client /usr/bin/
|
||||
RUN touch /etc/networks_list
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue