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
29 lines
757 B
YAML
29 lines
757 B
YAML
version: "2"
|
|
services:
|
|
cinder-volume-sf:
|
|
image: cinder
|
|
hostname: cinder-volume-sf
|
|
privileged: true
|
|
volumes:
|
|
- ./etc-cinder:/etc/cinder
|
|
- /dev/:/dev/
|
|
- /run/:/run/:shared
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /lib/modules:/lib/modules:ro
|
|
extra_hosts:
|
|
- "rabbitmq:172.49.49.5"
|
|
- "mariadb:172.49.49.6"
|
|
networks:
|
|
cindernet:
|
|
ipv4_address: 172.49.49.10
|
|
command: bash -c "cinder-volume -d --config-file /etc/cinder/cinder.conf.sf"
|
|
|
|
networks:
|
|
cindernet:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
-
|
|
subnet: 172.49.49.0/24
|