Created
September 4, 2015 10:01
-
-
Save tegud/14300cfba312c158b72e to your computer and use it in GitHub Desktop.
Dockerfile with entrypoint
This file contains 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 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