Set transport.host on elasticsearch.yml config file to avois Bootstrap Checks failure on production environments

This commit is contained in:
Jaime Alberto Sanchez Hidalgo 2017-01-18 12:34:26 -02:00
parent 0290eca7c6
commit e354f0cbee
1 changed files with 3 additions and 0 deletions

View File

@ -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/ ADD 02-beats-input.conf /etc/logstash/conf.d/
# override syslog # override syslog
ADD 10-syslog.conf /etc/logstash/conf.d/ 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