From d0546485f6d16418eb645e7474965eaefc376953 Mon Sep 17 00:00:00 2001 From: Harald Jensas Date: Mon, 19 Feb 2018 17:13:14 +0100 Subject: Add networking-baremetal * Adding Dockerfile to build image with ironic-neutron-agent. * Add ``neutron-base-plugin-networking-baremetal`` in kolla/common/config.py to enable building neutron with baremetal plugin. Since the ML2 mechanism driver and L2 Agent is in the same python package, the source install will include the ironic-neutron-agent as part of neutron-base. Change-Id: I232dcf44c8a56c268610053cf362714d52e6cb93 --- .../ironic-neutron-agent/Dockerfile.j2 | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 (limited to 'docker') diff --git a/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 new file mode 100644 index 000000000..e8567aecb --- /dev/null +++ b/docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j2 @@ -0,0 +1,32 @@ +FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block ironic_neutron_agent_header %}{% endblock %} + +{% import "macros.j2" as macros with context %} + +{% if install_type == 'binary' %} + + {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} + + {% set ironic_neutron_agent_packages = [ + 'python-networking-baremetal', + 'python-ironic-neutron-agent' + ] %} + + {% elif base_distro in ['debian', 'ubuntu'] %} + +RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ + && /bin/false + + {% endif %} + + {{ macros.install_packages(ironic_neutron_agent_packages | customizable("packages")) }} + +{% endif %} + + +{% block ironic_neutron_agent_footer %}{% endblock %} +{% block footer %}{% endblock %} + +USER neutron -- cgit v1.2.3