mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
Fix linting errors reported by hadolint (#1211)
* Fix linting errors reported by hadolint * use full path for folders when listing contents * add linting task to makefile
This commit is contained in:
parent
fbba6beaf6
commit
1ba0991d80
7 changed files with 55 additions and 27 deletions
|
@ -1,16 +1,17 @@
|
|||
FROM sebp/elk
|
||||
FROM sebp/elk:720
|
||||
|
||||
RUN mkdir /etc/logstash/patterns.d
|
||||
#postfix grok and filter
|
||||
RUN curl -L https://raw.githubusercontent.com/whyscream/postfix-grok-patterns/master/postfix.grok > /etc/logstash/patterns.d/postfix.grok
|
||||
RUN curl -L https://raw.githubusercontent.com/whyscream/postfix-grok-patterns/master/50-filter-postfix.conf > /etc/logstash/conf.d/15-filter-postfix.conf
|
||||
# custom amavis grok and filter
|
||||
ADD amavis.grok /etc/logstash/patterns.d
|
||||
ADD 16-amavis.conf /etc/logstash/conf.d
|
||||
COPY amavis.grok /etc/logstash/patterns.d
|
||||
COPY 16-amavis.conf /etc/logstash/conf.d
|
||||
# dovecot grok and filter
|
||||
RUN curl -L https://raw.githubusercontent.com/ninech/logstash-patterns/master/patterns.d/dovecot.grok > /etc/logstash/patterns.d/dovecot.grok
|
||||
RUN curl -L https://raw.githubusercontent.com/ninech/logstash-patterns/master/exmples/50-filter-dovecot.conf > /etc/logstash/conf.d/17-filter-dovecot.conf
|
||||
# FIXME: may be a cron job?
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
RUN mkdir -p /usr/share/GeoIP && \
|
||||
curl -L http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz | gunzip -c - > /usr/share/GeoIP/GeoLiteCity.dat
|
||||
|
||||
|
@ -18,9 +19,9 @@ WORKDIR ${LOGSTASH_HOME}
|
|||
RUN gosu logstash bin/logstash-plugin install --local --no-verify logstash-filter-geoip
|
||||
|
||||
# override beats input
|
||||
ADD 02-beats-input.conf /etc/logstash/conf.d/
|
||||
COPY 02-beats-input.conf /etc/logstash/conf.d/
|
||||
# override syslog
|
||||
ADD 10-syslog.conf /etc/logstash/conf.d/
|
||||
COPY 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue