-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
106 lines (97 loc) · 2.83 KB
/
Copy pathDockerfile
File metadata and controls
106 lines (97 loc) · 2.83 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#####################################################################
# Dockerfile to build SiLK, YAF, and FlowBAT
# Based on Ubuntu
#
# The preferred method for using FlowBAT is via the Ubuntu installation
# instructions at http://www.flowbat.com/installation.html. This image
# is for testing only.
#
# Check out http://www.flowbat.com
# Check out https://github.com/chrissanders/FlowBAT
# Thanks to https://github.com/redjack/docker-silk
# Thanks to https://github.com/dockerfile/nodejs
#####################################################################
FROM ubuntu:trusty
MAINTAINER Jason Smith <jason.smith.webmail@gmail.com>
EXPOSE 1800
EXPOSE 18000
EXPOSE 18001
ENV LIBFIXBUF_VERSION 1.7.1
ENV SILK_VERSION 3.11.0.1
ENV YAF_VERSION 2.7.1
# Install libfixbuf and SiLK dependencies
RUN apt-get update \
&& apt-get -y install \
man \
build-essential \
pkg-config \
libglib2.0-dev \
libssl-dev \
libpcre3-dev \
zlib1g \
bison \
flex \
libc-ares-dev \
libgnutls-dev \
libpcap0.8-dev \
liblzo2-dev \
libdbi-perl \
curl \
glib2.0 \
libglib2.0-dev \
g++ \
python-dev \
make \
gcc \
git-core \
mongodb-server \
checkinstall \
wget
# Download and build libfixbuf
RUN mkdir -p /src \
&& cd /src \
&& curl -f -L -O https://tools.netsa.cert.org/releases/libfixbuf-$LIBFIXBUF_VERSION.tar.gz \
&& tar zxf libfixbuf-$LIBFIXBUF_VERSION.tar.gz \
&& cd /src/libfixbuf-$LIBFIXBUF_VERSION \
&& ./configure --with-openssl \
&& make \
&& make install \
&& rm -rf /src
# Download and build SiLK
RUN mkdir -p /src \
&& cd /src \
&& curl -f -L -O https://tools.netsa.cert.org/releases/silk-$SILK_VERSION.tar.gz \
&& tar zxf silk-$SILK_VERSION.tar.gz \
&& cd /src/silk-$SILK_VERSION \
&& ./configure --enable-ipv6 --with-libfixbuf=/usr/local/lib/pkgconfig/ --with-python\
&& make \
&& make install \
&& rm -rf /src
# Download and build YAF
RUN mkdir -p /src \
&& cd /src \
&& curl -f -L -O http://tools.netsa.cert.org/releases/yaf-$YAF_VERSION.tar.gz \
&& tar zxf yaf-$YAF_VERSION.tar.gz \
&& export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
&& cd /src/yaf-$YAF_VERSION \
&& ./configure --enable-applabel \
&& make \
&& make install \
&& rm -rf /src
RUN ldconfig
# Download and install nodejs
# Install Node.js
RUN cd /tmp \
&& wget http://nodejs.org/dist/node-latest.tar.gz \
&& tar xvzf node-latest.tar.gz \
&& rm -f node-latest.tar.gz \
&& cd node-v* \
&& ./configure \
&& CXX="g++ -Wno-unused-local-typedefs" make \
&& CXX="g++ -Wno-unused-local-typedefs" make install \
&& cd /tmp \
&& rm -rf /tmp/node-v* \
&& npm install -g npm \
&& printf '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc
WORKDIR /datanode
CMD ["bash"]