From 3bd07af4620f1829fde88001d5135005a4a0dc50 Mon Sep 17 00:00:00 2001 From: GrupoCITEC Date: Wed, 18 Jan 2017 19:39:33 -0200 Subject: [PATCH] Set transport.host on elasticsearch.yml config file to avois Bootstrap Checks failure on production environments (#483) --- elk/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elk/Dockerfile b/elk/Dockerfile index 13241809..05a80211 100644 --- a/elk/Dockerfile +++ b/elk/Dockerfile @@ -21,3 +21,6 @@ RUN gosu logstash bin/logstash-plugin install --local --no-verify logstash-filte ADD 02-beats-input.conf /etc/logstash/conf.d/ # override syslog ADD 10-syslog.conf /etc/logstash/conf.d/ + +# avoid Bootstrap Checks failure on production +RUN /bin/grep -q -F 'transport.host' /etc/elasticsearch/elasticsearch.yml || echo "transport.host: 127.0.0.1" >> /etc/elasticsearch/elasticsearch.yml