Last active
December 31, 2015 03:48
-
-
Save tomislacker/7929597 to your computer and use it in GitHub Desktop.
Dockerfile demo for redis + logstash + elasticsearch + kibana3 (w/ nginx)
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 ubuntu:latest | |
MAINTAINER Ben Tomasik < btomasik [at] telkonet {dot} com> | |
ENV ES_DEB_URLROOT https://download.elasticsearch.org/elasticsearch/elasticsearch/ | |
ENV ES_DEB_FILE elasticsearch-0.90.7.deb | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update && apt-get upgrade | |
##### | |
# Install git, redis and other dependencies | |
# @see https://github.com/tomislacker/Logstash1.2_kibana3_auto_install | |
##### | |
RUN apt-get install git curl ca-certificates redis-server rubygems ruby1.9.1-dev -y | |
RUN git clone https://github.com/tomislacker/Logstash1.2_kibana3_auto_install.git /tmp/Logstash1.2_kibana3_auto_install | |
RUN /tmp/Logstash1.2_kibana3_auto_install/bootstrap | |
EXPOSE 80 | |
EXPOSE 6379 | |
EXPOSE 9200 | |
CMD start-stop-daemon --start --chuid redis:redis --pidfile /var/run/redis/redis.pid --umask 007 --exec /usr/bin/redis-server -- /etc/redis/redis.conf ; service logstash start ; service elasticsearch start ; ser | |
vice nginx start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment