Skip to content

Instantly share code, notes, and snippets.

@nickwallen
Created November 21, 2018 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickwallen/3bf2bd4907ae55484b7767066359ffca to your computer and use it in GitHub Desktop.
Save nickwallen/3bf2bd4907ae55484b7767066359ffca to your computer and use it in GitHub Desktop.
FROM centos:7

# install development tools
RUN yum -y groupinstall "Development Tools"
RUN yum -y install cmake make gcc gcc-c++ flex bison libpcap libpcap-devel openssl-devel python-devel swig zlib-devel perl cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi git

# install bro
RUN curl -L https://www.bro.org/downloads/bro-2.5.5.tar.gz | tar xvz
WORKDIR bro-2.5.5/
RUN ./configure
RUN make
RUN make install
ENV PATH="${PATH}:/usr/local/bro/bin"

# install pip
RUN yum -y update
RUN yum -y install epel-release
RUN yum -y install python-pip
RUN pip install --upgrade pip

# install bro-pkg
RUN pip install bro-pkg
ENV PATH="${PATH}:/usr/bin"
RUN bro-pkg autoconfig

# install librdkafka
RUN curl -L https://github.com/edenhill/librdkafka/archive/v0.9.4.tar.gz | tar xvz
WORKDIR librdkafka-0.9.4/
RUN ./configure --enable-sasl
RUN make
RUN make install

WORKDIR /root
docker build . --tag=bro-testin
docker run -it bro-testing /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment