-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (16 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM fluent/fluentd-kubernetes-daemonset:elasticsearch
MAINTAINER Timothy Clarke <[email protected]>
WORKDIR /home/fluent
COPY entrypoint.sh /fluentd/entrypoint.sh
RUN set -ex \
&& apk add --no-cache --virtual .build-deps \
build-base \
ruby-dev \
libffi-dev \
&& gem uninstall remote_syslog_logger \
&& gem install fluent-plugin-concat fluent-plugin-kubernetes_remote_syslog fluent-plugin-logzio remote_syslog_sender fluent-plugin-gelf-hs fluent-plugin-record-modifier \
&& sed 's#path /var/log/containers/\*.log#path /var/log/containers/\*.log\n exclude_path ["/var/log/containers/fluentd\*"]#g' -i /fluentd/etc/kubernetes.conf \
&& apk del .build-deps \
&& gem sources --clear-all \
&& chmod +x /fluentd/entrypoint.sh \
&& rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem