forked from zeek/zeek-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
2.5.3-dev.Dockerfile
53 lines (40 loc) · 1.49 KB
/
2.5.3-dev.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
# bro
#
# VERSION 0.1
FROM debian:stretch as builder
MAINTAINER Justin Azoff <[email protected]>
ENV WD /scratch
RUN mkdir ${WD}
WORKDIR /scratch
RUN apt-get update && apt-get upgrade -y && echo 2018-03-02
RUN apt-get -y install build-essential git bison flex gawk cmake swig libssl1.0-dev libgeoip-dev libpcap-dev python-dev libcurl4-openssl-dev wget libncurses5-dev ca-certificates zlib1g-dev --no-install-recommends
#Checkout bro
# Build bro
ENV VER 2.5.3
#ADD ./common/install-caf ${WD}/common/install-caf
#RUN ${WD}/common/install-caf 0.14.4
ADD ./common/buildbro ${WD}/common/buildbro
RUN ${WD}/common/buildbro bro ${VER}
# get geoip data
FROM debian:stretch as geogetter
RUN apt-get update && apt-get -y install wget ca-certificates --no-install-recommends
ADD ./common/getgeo.sh /usr/local/bin/getgeo.sh
RUN /usr/local/bin/getgeo.sh
# Make final image
FROM debian:stretch
ENV PATH /bro/bin/:$PATH
ENV VER 2.5.3
#install runtime dependencies
RUN apt-get update \
&& apt-get -y install --no-install-recommends libpcap0.8 libssl1.0.2 libgeoip1 \
python2.7-minimal python-pip python-setuptools python-wheel git \
&& apt-get clean
COPY --from=builder /usr/src/bro-${VER} /usr/src/bro-${VER}
COPY --from=builder /usr/local/bro-${VER} /usr/local/bro-${VER}
COPY --from=geogetter /usr/share/GeoIP/* /usr/share/GeoIP/
RUN ln -s /usr/local/bro-${VER} /bro
ADD ./common/bro_profile.sh /etc/profile.d/bro.sh
#install bro-pkg
RUN pip install bro-pkg
RUN bro-pkg autoconfig
CMD /bin/bash -l