kolla-ansible/docker/cinder/cinder-volume/Dockerfile.j2
Swapnil Kulkarni (coolsvap) a8661deac6 Drop root for cinder
Updates to ensure commands run in the cinder containers
are done as the 'cinder' user rather than root.

Change-Id: Ibbe04e3a92195dfb957fa56f762c60a80dbe30ca
Partially-Implements: blueprint drop-root
2015-12-01 09:20:46 +05:30

18 lines
346 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y \
lvm2 \
scsi-target-utils \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER cinder