summaryrefslogtreecommitdiff
path: root/docker/networking-baremetal
diff options
context:
space:
mode:
authorHarald Jensas <hjensas@redhat.com>2018-02-19 17:13:14 +0100
committerHarald Jensås <hjensas@redhat.com>2018-03-21 12:01:50 +0100
commitd0546485f6d16418eb645e7474965eaefc376953 (patch)
treea0589e3d0558deca0bbe6420c75267354294d62b /docker/networking-baremetal
parent38f21c364bfd4633df39b144955bd991a0b0990d (diff)
downloadkolla-d0546485f6d16418eb645e7474965eaefc376953.tar.gz
kolla-d0546485f6d16418eb645e7474965eaefc376953.zip
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
Diffstat (limited to 'docker/networking-baremetal')
-rw-r--r--docker/networking-baremetal/ironic-neutron-agent/Dockerfile.j232
1 files changed, 32 insertions, 0 deletions
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