From 793d68a29ca0a3724714b27441ddd87ecbe0e44d Mon Sep 17 00:00:00 2001 From: Ryan Hallisey Date: Tue, 14 Apr 2015 11:39:38 -0400 Subject: Cinder container Cinder is going to be split up into four containers. - cinder-api - cinder-scheduler - cinder-volume - cinder-backup Co-Authored-By: Daneyon Hansen Co-Authored-By: Ian Main Implements: blueprint cinder-container Closes-bug: #1460136 Change-Id: I688471151ffa54d547b9aa0f2f2e2ea7f68f288d --- .../binary/cinder-app/cinder-base/Dockerfile | 7 ++ docker/centos/binary/cinder-app/cinder-base/build | 1 + .../binary/cinder-app/cinder-base/config-cinder.sh | 132 +++++++++++++++++++++ 3 files changed, 140 insertions(+) create mode 100644 docker/centos/binary/cinder-app/cinder-base/Dockerfile create mode 120000 docker/centos/binary/cinder-app/cinder-base/build create mode 100644 docker/centos/binary/cinder-app/cinder-base/config-cinder.sh (limited to 'docker/centos/binary/cinder-app/cinder-base') diff --git a/docker/centos/binary/cinder-app/cinder-base/Dockerfile b/docker/centos/binary/cinder-app/cinder-base/Dockerfile new file mode 100644 index 000000000..643f0645b --- /dev/null +++ b/docker/centos/binary/cinder-app/cinder-base/Dockerfile @@ -0,0 +1,7 @@ +FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%% +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +RUN yum -y install openstack-cinder && yum clean all + +COPY config-cinder.sh /opt/kolla/config-cinder.sh + diff --git a/docker/centos/binary/cinder-app/cinder-base/build b/docker/centos/binary/cinder-app/cinder-base/build new file mode 120000 index 000000000..ec1913803 --- /dev/null +++ b/docker/centos/binary/cinder-app/cinder-base/build @@ -0,0 +1 @@ +../../../../../tools/build-docker-image \ No newline at end of file diff --git a/docker/centos/binary/cinder-app/cinder-base/config-cinder.sh b/docker/centos/binary/cinder-app/cinder-base/config-cinder.sh new file mode 100644 index 000000000..f82cb5510 --- /dev/null +++ b/docker/centos/binary/cinder-app/cinder-base/config-cinder.sh @@ -0,0 +1,132 @@ +#!/bin/sh + +set -e + +. /opt/kolla/kolla-common.sh + +check_required_vars CINDER_DB_PASSWORD CINDER_KEYSTONE_PASSWORD \ + KEYSTONE_PUBLIC_SERVICE_HOST RABBITMQ_SERVICE_HOST \ + GLANCE_API_SERVICE_HOST MARIADB_SERVICE_HOST \ + RABBITMQ_SERVICE_HOST RABBITMQ_SERVICE_PORT \ + RABBIT_USERID RABBIT_PASSWORD GLANCE_API_SERVICE_HOST \ + GLANCE_API_SERVICE_PORT ADMIN_TENANT_NAME \ + CINDER_DB_NAME CINDER_DB_USER CINDER_KEYSTONE_USER \ + PUBLIC_IP KEYSTONE_AUTH_PROTOCOL CINDER_LOG_DIR + +dump_vars + +cat > /openrc <