Lower limit for open files when installing fluent gem

Podman has default ulimit set to 1024, because
of that fluent build is failing.

Change-Id: I105351b58c530841e17fcba331fc4300eb8296f2
This commit is contained in:
Michal Arbet 2023-09-21 10:05:22 +02:00
parent 3d703b60e6
commit 4871ca4d6b

View File

@ -61,7 +61,7 @@ RUN usermod --append --home {{ homedir }} --groups kolla {{ name }} \
{% macro install_fluent_plugins(plugins, chain=False) -%}
{% if plugins is defined and plugins|length > 0 -%}
{% if not chain -%} RUN {% endif -%}
ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
ulimit -n 1024 && td-agent-gem install {{ plugins | join(' ') }}
{%- endif %}
{%- endmacro %}