![Jeffrey Zhang](/assets/img/avatar_default.png)
the bad pycparser wheel package has beed removed.
This reverts commit 195bcd0f43
.
Change-Id: I4669a627b68c4bd7534288c4a594a49226db3832
20 lines
845 B
Django/Jinja
20 lines
845 B
Django/Jinja
{% macro install_packages(packages) -%}
|
|
{% if packages is defined and packages|length > 0 -%}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] -%}
|
|
RUN yum -y install {{ packages | join(' ') }} && yum clean all
|
|
{%- elif base_distro in ['ubuntu', 'debian'] -%}
|
|
{#-
|
|
debian_package_install is a utility method to build up an appropriate
|
|
set of commands to install packages in a debian-based environment that
|
|
may include URL links to a .deb package (e.g, heka)
|
|
-#}
|
|
RUN {{ debian_package_install(packages) }}
|
|
{%- endif %}
|
|
{%- endif %}
|
|
{%- endmacro %}
|
|
|
|
|
|
{% macro install_pip(packages) %}
|
|
RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt {% for package in packages %}{{ package }} {% endfor %}
|
|
{% endmacro %}
|