deb-cinder/contrib/block-box/init-scripts/cinder-api.sh
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

8 lines
130 B
Bash

#!/bin/bash
INIT_DB=${INIT_DB:-true}
if [ "$INIT_DB" = "true" ]; then
/bin/sh -c "cinder-manage db sync" cinder
fi
cinder-api -d