kolla/docker/neutron/neutron-openvswitch-agent/Dockerfile.j2
Hui Kang 55b50b121c ADD user neutron to the neutron-openvswitch-agent docker file
Neutron containers share the same log directory. So all containers
should use same username to create directories.

Change-Id: Id95a3205b53dd87ba21d55ebecada89d9f86d37b
Closes-Bug: #1551829
2016-03-01 13:51:16 -05:00

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