FROM qnib/logstash
MAINTAINER "<NAME> <<EMAIL>>"

# Redis
RUN yum install -y redis python-redis
ADD etc/diamond/collectors/RedisCollector.conf /etc/diamond/collectors/
# Add key,cert
ADD etc/pki/tls/certs/logstash-forwarder.crt /etc/pki/tls/certs/
ADD etc/pki/tls/private/logstash-forwarder.key /etc/pki/tls/private/

# Add redis startscript
ADD etc/supervisord.d/redis.ini /etc/supervisord.d/
# Overwrite logstash check with service checks and add redis check
ADD etc/consul.d/ /etc/consul.d/

# Add Logstash default
ADD etc/default/logstash /etc/default/logstash
