Public Repository

Last pushed: 2 years ago
Short Description
Docker image for Fluentd with Elasticsearch and Kafka plugins
Full Description

FROM ubuntu:14.04

started with michaloo/fluentd image

MAINTAINER Bill Jorgensen william.jorgensen@pearson.com

WORKDIR /app

ENTRYPOINT [ "/bin/bash" ]
CMD [ "/app/bin/start" ]

configure default environment variables

ENV ES_HOST localhost
ENV ES_PORT 9200
ENV LOG_ENV production
ENV DOCKER_HOST unix:/var/run/docker.sock

add startup scripts and config files

COPY ./bin /app/bin
COPY ./config /app/config

RUN apt-get -q update && \
apt-get -qy install git

use fluentd kafka plugin

RUN git clone https://github.com/htgc/fluent-plugin-kafka.git
RUN set -x && \
apt-get -qy install \
curl \
libcurl4-openssl-dev \
make \
ruby \
ruby-dev && \
\
gem install -q --no-ri --no-rdoc \
fluentd && \
fluent-gem install -q \
fluent-plugin-elasticsearch \
fluent-plugin-exclude-filter \
fluent-plugin-record-modifier \
fluent-plugin-kafka && \
mkdir /etc/fluentd && \
\
cd /usr/local/bin && \
curl -sSL https://github.com/jwilder/docker-gen/releases/download/0.4.0/docker-gen-linux-amd64-0.4.0.tar.gz | tar -xzv

Docker Pull Command
Owner
billjorgensen