db82e4450a
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
12 lines
449 B
Docker
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
|