@@ -35,38 +35,15 @@ Documentation of `fluent.conf` is available at [docs.fluentd.org][3].
3535### 3. Customize Dockerfile to install plugins (optional)
3636
3737You can install [ Fluentd plugins] [ 4 ] using Dockerfile.
38- Sample Dockerfile installs ` fluent-plugin-elasticsearch ` .
38+ Sample Dockerfile installs ` fluent-plugin-concat ` .
3939To add plugins, edit ` Dockerfile ` as following:
4040
4141About deprecated old images, see [ DEPRECATED] ( DEPRECATED.md ) .
4242
43- #### Alpine version
44-
45- ``` Dockerfile
46- FROM fluent/fluentd:v1.17-1
47-
48- # Use root account to use apk
49- USER root
50-
51- # below RUN includes plugin as examples elasticsearch is not required
52- # you may customize including plugins as you wish
53- RUN apk add --no-cache --update --virtual .build-deps \
54- sudo build-base ruby-dev \
55- && sudo gem install fluent-plugin-elasticsearch \
56- && sudo gem sources --clear-all \
57- && apk del .build-deps \
58- && rm -rf /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem
59-
60- COPY fluent.conf /fluentd/etc/
61- COPY entrypoint.sh /bin/
62-
63- USER fluent
64- ```
65-
6643#### Debian version
6744
6845``` Dockerfile
69- FROM fluent/fluentd:v1.17 -debian-1
46+ FROM fluent/fluentd:v1.19 -debian
7047
7148# Use root account to use apt
7249USER root
@@ -76,7 +53,7 @@ USER root
7653RUN buildDeps="sudo make gcc g++ libc-dev" \
7754 && apt-get update \
7855 && apt-get install -y --no-install-recommends $buildDeps \
79- && sudo gem install fluent-plugin-elasticsearch \
56+ && sudo gem install fluent-plugin-concat \
8057 && sudo gem sources --clear-all \
8158 && SUDO_FORCE_REMOVE=yes \
8259 apt-get purge -y --auto-remove \
@@ -93,7 +70,7 @@ USER fluent
9370
9471#### Note
9572
96- These example run ` apk add ` / ` apt-get install ` to be able to install
73+ These example run ` apt-get install ` to be able to install
9774Fluentd plugins which require native extensions (they are removed immediately
9875after plugin installation).
9976If you're sure that plugins don't include native extensions, you can omit it
0 commit comments