2b023ba13e
Fixed up 5 Dockerfile.j2 files that had the issue Change-Id: I8a5551050a75d64712c36d53573437a18777a82f
40 lines
1.1 KiB
Django/Jinja
40 lines
1.1 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block neutron_metadata_agent_ovn_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set neutron_metadata_agent_ovn_packages = [
|
|
'python-networking-ovn-metadata-agent'
|
|
] %}
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set neutron_metadata_agent_ovn_packages = [
|
|
'python-networking-ovn'
|
|
] %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(neutron_metadata_agent_ovn_packages | customizable("packages")) }}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD plugins-archive /
|
|
|
|
{% set neutron_metadata_agent_ovn_plugins_pip_packages = [
|
|
'/plugins/*'
|
|
] %}
|
|
|
|
RUN if [ "$(ls /plugins)" ]; then \
|
|
{{ macros.install_pip(neutron_metadata_agent_ovn_plugins_pip_packages) }}; \
|
|
fi
|
|
|
|
{% endif %}
|
|
|
|
{% block neutron_metadata_agent_ovn_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER neutron
|