2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
2015-11-23 12:38:58 +05:30
|
|
|
MAINTAINER {{ maintainer }}
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2015-09-04 02:15:03 -07:00
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2015-09-16 10:34:28 +03:00
|
|
|
RUN yum install -y \
|
|
|
|
openvswitch \
|
|
|
|
supervisor \
|
2015-08-22 13:40:20 +00:00
|
|
|
&& yum clean all
|
2015-08-13 04:24:42 +02:00
|
|
|
|
|
|
|
COPY supervisord.conf /etc/
|
|
|
|
|
2015-08-22 13:40:20 +00:00
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
|
|
|
|
RUN apt-get install -y --no-install-recommends supervisor \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/
|
|
|
|
|
2015-12-30 13:13:25 +01:00
|
|
|
{% if install_type == 'binary' %}
|
|
|
|
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
|
|
neutron-metadata-agent \
|
|
|
|
neutron-dhcp-agent \
|
|
|
|
neutron-l3-agent \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
{% endif %}
|
2015-08-13 04:24:42 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2015-10-20 17:21:14 +08:00
|
|
|
# TODO: SamYaple FWaaS is part of the l3-agent, not a separate agent that is
|
|
|
|
# why this file is needed. To support FWaaS we cannot have a separate container
|
2015-08-13 04:24:42 +02:00
|
|
|
# I need to figure out the best way to make this work together
|
|
|
|
#
|
|
|
|
# This file _does_ _not_ need to exist, you must remove referencing it from the
|
|
|
|
# exec line in the start script. Also all these config options can exist in the
|
|
|
|
# main neutron.conf if we wish
|
|
|
|
COPY fwaas_driver.ini /etc/neutron/
|
|
|
|
|
2015-10-01 07:43:18 +00:00
|
|
|
COPY neutron-dhcp-agent/ /var/lib/kolla/neutron-dhcp-agent
|
|
|
|
COPY neutron-l3-agent/ /var/lib/kolla/neutron-l3-agent
|
|
|
|
COPY neutron-metadata-agent/ /var/lib/kolla/neutron-metadata-agent
|
|
|
|
COPY config-sudoers.sh /var/lib/kolla/
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2015-09-28 15:59:53 -04:00
|
|
|
COPY start.sh /
|
|
|
|
|
2015-11-12 17:05:31 +00:00
|
|
|
# We will remove this line in Docker 1.10 when namespace propogation works
|
|
|
|
VOLUME /run/netns
|
|
|
|
|
2015-09-28 15:59:53 -04:00
|
|
|
CMD ["/start.sh"]
|
2015-08-28 13:17:41 +03:00
|
|
|
|
|
|
|
{{ include_footer }}
|