Skip to content

Instantly share code, notes, and snippets.

@agonzalezro
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save agonzalezro/3405735989c967c11ff8 to your computer and use it in GitHub Desktop.

Select an option

Save agonzalezro/3405735989c967c11ff8 to your computer and use it in GitHub Desktop.
packetbeat Dockerfile
FROM phusion/baseimage:latest
RUN apt-get update
RUN apt-get -y -q install libpcap0.8 wget
ENV VERSION=1.0.0-beta2 ARCH=x86_64 EXTENSION=tar.gz
ENV FILENAME=packetbeat-${VERSION}-${ARCH}.${EXTENSION}
RUN wget https://download.elastic.co/beats/packetbeat/${FILENAME}
RUN tar zxvf ${FILENAME}
WORKDIR packetbeat-${VERSION}
ADD packetbeat.yml packetbeat.yml
CMD ["./packetbeat", "-e", "-c=packetbeat.yml"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment