forked from amzn/zeek-plugin-bacnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 1.13 KB
/
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
FROM amazonlinux:latest
MAINTAINER https://github.com/amzn/
# Metadata
LABEL program=bro
# Specify program
ENV PROG zeek
# Specify source extension
ENV EXT tar.gz
# Specify Bro version to download and install (e.g. 3.0.0)
ENV VERS 3.0.0
# Install directory
ENV PREFIX /opt/bro
# Path should include prefix
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PREFIX/bin
# Install dependencies
RUN yum -y update
RUN yum -y install cronie epel-release gcc gcc-c++ make libpcap-devel openssl-devel bind-devel zlib-devel cmake git perl libcurl-devel GeoIP-devel python-devel jemalloc-devel swig libpcap bind-libs zlib bash python libcurl gawk GeoIP jemalloc wget flex bison python-pip tar iproute procps-ng kernel-devel clang && yum clean all
# Compile and install Zeek
WORKDIR /tmp
RUN wget --no-check-certificate https://www.bro.org/downloads/$PROG-$VERS.$EXT && tar -xzf $PROG-$VERS.$EXT
WORKDIR /tmp/$PROG-$VERS
RUN ./configure --prefix=$PREFIX --disable-python
RUN make
RUN make install
USER root
RUN pip install zkg
RUN zkg autoconfig
COPY [--chown=bro:bro] . /tmp/zeek-bacnet
WORKDIR /tmp/zeek-bacnet
RUN zkg install --force .