Merge "Add Dockerfile for networking-ovn-metadata-agent"
This commit is contained in:
commit
d353da2097
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
|
@ -571,6 +571,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