Skip to content

Instantly share code, notes, and snippets.

@tegud
Created September 4, 2015 10:01
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 tegud/14300cfba312c158b72e to your computer and use it in GitHub Desktop.
Save tegud/14300cfba312c158b72e to your computer and use it in GitHub Desktop.
Dockerfile with entrypoint
FROM logstash:1.5.4
RUN /opt/logstash/bin/plugin install logstash-filter-translate
RUN /opt/logstash/bin/plugin install logstash-filter-json_encode
RUN mkdir -p /geoip \
&& curl -SLo /geoip/GeoLiteCity.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz \
&& curl -SLo /geoip/GeoIPASNum.dat.gz http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz \
&& gunzip /geoip/*.gz \
&& rm -f /geoip/*.gz
ADD ./central-collector.conf /logstash-config/logstash.conf
ENTRYPOINT ["logstash", "agent", "-f", "/logstash-config/logstash.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment