joanbono / Snorter

Snort + Barnyard2 + Pulledpork → The easy way!
https://joanbono.github.io/Snorter
GNU General Public License v3.0
165 stars 32 forks source link

oinkcode as env variable for docker #3

Closed Xumeiquer closed 7 years ago

Xumeiquer commented 7 years ago

I think it would be useful to change the dockerfile in the way that it can catch the oinkcode from the environment variable.

joanbono commented 7 years ago

Solved.

Now it's in the README.md how to pass the OINKCODE and the INTERFACE to the Dockerfile.

Also, Dockerfile is updated 😃

Thanks a lot for the issue, and the StackOverflow link 😄


Updated Dockerfile content

#Kali docker with SNORT + BARNYARD2 + PULLEDPORK
#Version 0.1.0
From kalilinux/kali-linux-docker:latest
MAINTAINER Joan Bono <@joan_bono> && Alvaro Diaz <@alvarodh5>

ENV OINKCODE
ENV INTERFACE

RUN apt-get update && apt-get upgrade -y && apt-get install -y git curl wget
RUN git clone https://github.com/joanbono/Snorter.git /opt/Snorter
RUN /opt/Snorter/src/Snorter.sh -o ${OINKCODE} -i ${INTERFACE}
USER root
WORKDIR /opt/Snorter