# limitations under the License.
FROM alpine:3.9
-MAINTAINER Levente Kale <levente.kale@nokia.com>
+MAINTAINER Levente Kale <levente.kale@nokia.com>
ARG VERSION
ENV FLUENTD_VERSION=$VERSION
ruby ruby-irb \
su-exec==${SU_EXEC_VERSION} \
dumb-init==${DUMB_INIT_VERSION} \
+ libffi-dev \
&& apk add --no-cache --virtual .build-deps \
build-base \
ruby-dev \
wget \
gnupg \
- libffi-dev \
&& update-ca-certificates \
&& echo 'gem: --no-document' >> /etc/gemrc \
&& gem install oj -v 2.18.3 \
&& gem install fluent-plugin-record-reformer \
&& gem install fluent-plugin-rewrite-tag-filter \
&& gem install fluent-plugin-elasticsearch \
+&& gem install fluent-plugin-remote_syslog \
&& gem install fluent-plugin-kubernetes_metadata_filter \
&& gem install bigdecimal \
&& gem install etc \
&& mkdir -p /fluentd/etc /fluentd/plugins \
&& chmod +x /bin/entrypoint.sh \
&& chmod 700 /fluentd/log
-
-# Copy configuration files
-# TODO: change it to a dynamic ConfigMap, in case something needs to be run-time configurable
-COPY ./conf/fluent.conf /fluentd/etc/
-