Add octavia-driver-agent
Change-Id: Iea2c02d59d2906141ca37ce9b48a0f7f4fc14421
This commit is contained in:
parent
62da72f5db
commit
785fe5641d
41
docker/octavia/octavia-driver-agent/Dockerfile.j2
Normal file
41
docker/octavia/octavia-driver-agent/Dockerfile.j2
Normal file
@ -0,0 +1,41 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}octavia-base:{{ tag }}
|
||||
{% block labels %}
|
||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
||||
{% endblock %}
|
||||
|
||||
{% block octavia_driver_agent_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_package_type == 'rpm' %}
|
||||
{% set octavia_driver_agent_packages = [
|
||||
'python3-ovn-octavia-provider'
|
||||
] %}
|
||||
{% elif base_package_type == 'deb' %}
|
||||
{% set octavia_driver_agent_packages = [
|
||||
'octavia-driver-agent',
|
||||
'python3-ovn-octavia-provider'
|
||||
] %}
|
||||
{% endif %}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
{% set octavia_driver_agent_packages = [
|
||||
] %}
|
||||
|
||||
{% set octavia_driver_agent_plugins_pip_packages = [
|
||||
'/plugins/*'
|
||||
] %}
|
||||
|
||||
{{ macros.install_packages(octavia_driver_agent_packages | customizable("packages")) }}
|
||||
|
||||
ADD plugins-archive /
|
||||
RUN if [ "$(ls /plugins)" ]; then \
|
||||
{{ macros.install_pip(octavia_driver_agent_plugins_pip_packages) }} ; \
|
||||
fi
|
||||
{% endif %}
|
||||
|
||||
{% block octavia_driver_agent_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER octavia
|
@ -584,6 +584,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
|
||||
'ovn-octavia-provider-${openstack_branch}.tar.gz')},
|
||||
'octavia-driver-agent-plugin-ovn-octavia-provider': {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/openstack/ovn-octavia-provider/'
|
||||
'ovn-octavia-provider-${openstack_branch}.tar.gz')},
|
||||
'panko-base': {
|
||||
'type': 'url',
|
||||
'location': ('$tarballs_base/openstack/panko/'
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
``octavia-driver-agent`` image was added to support other Octavia providers than
|
||||
``amphora``.
|
Loading…
Reference in New Issue
Block a user