b5a322ea35
This patch creates a specific OVN neutron-server container which uses neutron-server as its base and adds OVN specific packages similar to this commit [1] which adds ODL specific neutron-server [1] - I610b07a3c2bcf1c3288f76112a08b81c50e06913 Change-Id: Iee1d04d08609e4492a7a799b5ac9c0991898887d Partially-implements: blueprint ovn-controller-neutron
33 lines
816 B
Django/Jinja
33 lines
816 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}neutron-server:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
USER root
|
|
|
|
{% block neutron_server_ovn %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% set neutron_server_ovn_packages = [
|
|
'python-networking-ovn',
|
|
] %}
|
|
|
|
{{ macros.install_packages(neutron_server_ovn_packages | customizable("packages")) }}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD plugins-archive /
|
|
|
|
{% set neutron_server_ovn_plugins_pip_packages = [
|
|
'/plugins/*'
|
|
] %}
|
|
|
|
RUN {{ macros.install_pip(neutron_server_ovn_plugins_pip_packages | customizable("pip_packages")) }}
|
|
|
|
{% endif %}
|
|
|
|
{% block neutron_server_ovn_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER neutron
|