55b50b121c
Neutron containers share the same log directory. So all containers should use same username to create directories. Change-Id: Id95a3205b53dd87ba21d55ebecada89d9f86d37b Closes-Bug: #1551829
27 lines
617 B
Django/Jinja
27 lines
617 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
# Install required packages
|
|
RUN yum install -y \
|
|
openstack-neutron-openvswitch \
|
|
openvswitch \
|
|
&& yum clean all
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
neutron-plugin-openvswitch \
|
|
openvswitch-switch \
|
|
neutron-plugin-openvswitch-agent \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ include_footer }}
|
|
|
|
USER neutron
|