Add Dockerfile for networking-ovn-metadata-agent
This patch adds a new Dockerfile for the metadata agent in networking-ovn so that we can have a Kolla image to be deployed in OVN containerized environments. Change-Id: I8af4ae921ecca51a99886d5208abeb1a4eb42c83 Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
This commit is contained in:
parent
2564b6aecd
commit
e24f02a706
39
docker/neutron/neutron-metadata-agent-ovn/Dockerfile.j2
Normal file
39
docker/neutron/neutron-metadata-agent-ovn/Dockerfile.j2
Normal file
@ -0,0 +1,39 @@
|
||||
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 | customizable("pip_packages")) }}; \
|
||||
fi
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% block neutron_metadata_agent_ovn_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER neutron
|
@ -565,6 +565,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/networking-ovn/'
|
||||
'networking-ovn-master.tar.gz')},
|
||||
'neutron-metadata-agent-ovn-plugin-networking-ovn': {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/networking-ovn/'
|
||||
'networking-ovn-master.tar.gz')},
|
||||
'nova-base': {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/nova/'
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
A new agent for metadata API has been introduced in ``networking-ovn``.
|
||||
This agent is to be deployed in compute nodes and, in order to support
|
||||
a containerized deployment, a new Kolla image is created.
|
Loading…
Reference in New Issue
Block a user