-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathDockerfile
53 lines (45 loc) · 988 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM ubuntu:18.04
MAINTAINER Petr Velan <[email protected]>
# IPFIXcol dependencies
RUN apt-get update && apt-get install -y \
autoconf \
bison \
build-essential \
docbook-xsl \
doxygen \
flex \
git \
liblzo2-dev \
libtool \
libsctp-dev \
libssl1.0-dev \
libxml2 \
libxml2-dev \
pkg-config \
xsltproc
# checkout IPFIXcol
WORKDIR /root/
RUN git clone --recursive https://github.com/CESNET/ipfixcol.git
WORKDIR /root/ipfixcol/
# select devel branch for installation
RUN git checkout devel;
RUN git submodule update --init --recursive
# install IPFIXcol base
RUN cd base; \
autoreconf -i; \
./configure --with-distro=debian; \
make clean; \
make install; \
ldconfig
# install IPFIXcol plugins
RUN for p in storage/json; do \
cd plugins/$p; \
autoreconf -i; \
./configure --with-distro=debian; \
make clean; \
make install; \
cd -; \
done
EXPOSE 4739 4739/udp
VOLUME /etc/ipfixcol/
ENTRYPOINT ["/usr/local/bin/ipfixcol"]