fb61ba7dac
There are several images installing 'python3-libvirt' package. Which for Debian reside in 'libvirt' repo. So let's enable it where needed. Change-Id: I1c91d27f2578f5ca7c83c4747725b1d9371880b0
41 lines
1006 B
Django/Jinja
41 lines
1006 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block neutron_mlnx_agent_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.enable_extra_repos(['libvirt']) }}
|
|
|
|
{% set neutron_mlnx_agent_packages = [
|
|
'python3-libvirt',
|
|
'python3-ethtool',
|
|
] %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% set neutron_mlnx_agent_packages = neutron_mlnx_agent_packages + [
|
|
'python3-networking-mlnx'
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(neutron_mlnx_agent_packages | customizable("packages")) }}
|
|
|
|
{% if install_type == 'source' %}
|
|
|
|
{% set neutron_mlnx_agent_pip_packages = [
|
|
'networking-mlnx'
|
|
] %}
|
|
|
|
RUN {{ macros.install_pip(neutron_mlnx_agent_pip_packages | customizable("pip_packages")) }}
|
|
|
|
{% endif %}
|
|
|
|
{% block neutron_mlnx_agent_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER neutron
|