aboutsummaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 0af3fe43c..0e4078ec9 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -105,10 +105,10 @@ RUN apt-get update \
&& chmod 755 /usr/bin/kubectl
{% endmacro %}
-{% macro install_fluent_plugins(plugins, chain=False) -%}
+{% macro install_fluent_plugins(binary, plugins, chain=False) -%}
{% if plugins is defined and plugins|length > 0 -%}
{% if not chain -%} RUN {% endif -%}
- {%- if base_arch == 'x86_64' and base_distro in ['centos', 'rhel', 'ubuntu'] -%}
+ {%- if binary == 'td-agent' -%}
ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
{%- else -%}
ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}