Last active
November 29, 2017 14:03
-
-
Save markuskont/544db928968caed898265a7d84b370ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch | |
RUN apt-get update && apt-get install -qq -y \ | |
git \ | |
build-essential \ | |
autogen \ | |
autoconf \ | |
libtool \ | |
pkg-config \ | |
python \ | |
checkinstall \ | |
curl \ | |
sudo | |
ENV INSTALL_PATH /src | |
RUN mkdir -p $INSTALL_PATH | |
WORKDIR $INSTALL_PATH | |
RUN git clone https://github.com/OISF/suricata \ | |
&& cd suricata \ | |
&& git checkout tags/suricata-4.0.1 | |
RUN cd suricata && git clone https://github.com/OISF/libhtp.git \ | |
&& cd libhtp \ | |
&& git checkout tags/0.5.25 | |
RUN apt-get -y install \ | |
libpcre3 \ | |
libpcre3-dbg \ | |
libpcre3-dev \ | |
libpcap-dev \ | |
libnet1-dev \ | |
libyaml-0-2 \ | |
libyaml-dev \ | |
zlib1g \ | |
zlib1g-dev \ | |
libcap-ng-dev \ | |
libcap-ng0 \ | |
libmagic-dev \ | |
libjansson-dev \ | |
libhyperscan-dev \ | |
libhiredis-dev \ | |
libluajit-5.1-dev | |
# execute unknown script from web as root, what could possibly go wrong | |
#RUN curl -sSf https://static.rust-lang.org/rustup.sh | sh | |
RUN cd suricata && ./autogen.sh | |
RUN cd suricata && ./configure \ | |
--prefix=/opt/suricata \ | |
--sysconfdir=/etc \ | |
--enable-hiredis \ | |
--enable-profiling \ | |
--enable-luajit \ | |
--enable-python \ | |
--enable-rust \ | |
--enable-rust-experimental | |
RUN cd suricata && make && make install-full | |
CMD cd /src/suricata && checkinstall --install=no --pakdir=/srv -y --pkgversion=4.0.1-0 | |
# docker run --rm -ti -v $PWD:/srv markuskont/suricata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment