cinder/contrib/block-box/docker_files/Dockerfile.cinder-lvm
John Griffith db82e4450a Add blockbox to Cinder project
This change creates a contrib directory in the Cinder tree and adds
a project called block-box.

This addition provides a method to easily create Docker images for
a standalone Cinder deployment and employs a docker-compose file to
enable rapid build and deployment of Cinder as a standlone service.

Change-Id: Id08ffefd322e80a433b58d48b8b89b1ca1695150
2017-05-23 10:07:31 -06:00

12 lines
449 B
Docker

FROM cinder
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y --no-install-recommends \
vim lvm2 tgt \
&& rm -rf /var/lib/apt
RUN sed -i -e 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf \
&& sed -i -e 's/use_lvmetad = 0/use_lvmetad =1/g' /etc/lvm/lvm.conf \
&& echo "include /var/lib/cinder/volumes/*" >> /etc/tgt/targets.conf
CMD /usr/sbin/tgtd