aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJuan Badia Payno <jbadiapa@redhat.com>2017-12-22 09:08:25 +0100
committerJuan Badia Payno <jbadiapa@redhat.com>2018-01-05 15:47:41 +0100
commitee127b9e76c6e0673ab183bba9b27302645d2b27 (patch)
tree773451e74f8d263d538475a17f0c63fae2e1f456 /docker
parentd568df9bccccf78d92276ac3be98dc2f0a61fb79 (diff)
downloadkolla-ee127b9e76c6e0673ab183bba9b27302645d2b27.tar.gz
kolla-ee127b9e76c6e0673ab183bba9b27302645d2b27.zip
Fluentd plugins rpm installation on CentOS
Currently, fluentd plugins are installed via gem install, this may causes some issues when gems are updated upstream. This patch uses the plugins packaged on CentOS opstools repository. The debian/ubuntu image has not been modified Change-Id: Ib32ceaae0d9fa56c6ec25a47ae6f44259d3b6e6d
Diffstat (limited to 'docker')
-rw-r--r--docker/fluentd/Dockerfile.j236
1 files changed, 12 insertions, 24 deletions
diff --git a/docker/fluentd/Dockerfile.j2 b/docker/fluentd/Dockerfile.j2
index 132508014..af2452ac4 100644
--- a/docker/fluentd/Dockerfile.j2
+++ b/docker/fluentd/Dockerfile.j2
@@ -15,10 +15,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% set fluentd_packages = [
'fluentd',
- 'gcc-c++',
'hostname',
- 'make',
- 'ruby-devel'
+ 'rubygem-fluent-plugin-elasticsearch',
+ 'rubygem-fluent-plugin-grok-parser',
+ 'rubygem-fluent-plugin-kubernetes_metadata_filter',
+ 'rubygem-fluent-plugin-rewrite-tag-filter',
+ 'rubygem-fluent-plugin-secure-forward'
] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
@@ -53,30 +55,16 @@ RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block fluentd_plugins_install %}
-
-{% set fluentd_plugins = [
- 'fluent-plugin-parser',
- 'fluent-plugin-kubernetes_metadata_filter',
- 'fluent-plugin-grep',
- 'fluent-plugin-secure-forward'
-] %}
-
-{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
- # NOTE: We use fluentd version is v12.0 so fluent-plugin-grok-parse version should be < 1.0.0.
- # https://github.com/fluent/fluent-plugin-grok-parser
- {% set fluentd_plugins = [
- 'activesupport:4.2.9',
- 'public_suffix:2.0.5',
- 'fluent-plugin-elasticsearch:1.10.2',
- 'fluent-plugin-grok-parser:0.3.1',
- 'fluent-plugin-rewrite-tag-filter:1.6.0'
- ] + fluentd_plugins %}
-{% elif base_distro in ['debian', 'ubuntu'] %}
+{% if base_distro in ['debian', 'ubuntu'] %}
{% set fluentd_plugins = [
'fluent-plugin-elasticsearch',
+ 'fluent-plugin-grep',
'fluent-plugin-grok-parser:2.1.4',
- 'fluent-plugin-rewrite-tag-filter:2.0.0'
- ] + fluentd_plugins %}
+ 'fluent-plugin-kubernetes_metadata_filter',
+ 'fluent-plugin-parser',
+ 'fluent-plugin-rewrite-tag-filter:2.0.0',
+ 'fluent-plugin-secure-forward',
+ ] %}
{% endif %}
{{ macros.install_fluent_plugins(fluentd_plugins | customizable("plugins")) }}