aboutsummaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j210
1 files changed, 3 insertions, 7 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 50adf8bb6..029e995c7 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -108,14 +108,10 @@ RUN apt-get update \
{% macro install_fluent_plugins(plugins, chain=False) -%}
{% if plugins is defined and plugins|length > 0 -%}
{% if not chain -%} RUN {% endif -%}
- {%- if base_distro in ['centos', 'oraclelinux', 'rhel'] -%}
+ {%- if base_arch == 'x86_64' and base_distro in ['centos', 'oraclelinux', 'rhel', 'ubuntu'] -%}
+ ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
+ {%- else -%}
ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}
- {%- elif base_distro in ['debian', 'ubuntu'] -%}
- {%- if base_arch == 'x86_64' and base_distro == 'ubuntu' -%}
- ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
- {%- else -%}
- ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}
- {%- endif %}
{%- endif %}
{%- endif %}
{%- endmacro %}