Set up glance to use a data container.

Glance images were originally intended to be stored on the host (see
container Dockerfile) but the compose file was not doing this.  The
right thing is to use a data container for image content.

Closes-bug: #1465401

Change-Id: I02d2aab2913356939d98b8c18f9e788ae6d901af
Co-Authored-By: Ryan Hallisey <rhallise@redhat.com>
This commit is contained in:
Ian Main
2015-06-18 13:48:22 -04:00
co-authored by Ryan Hallisey
parent 0c5d6575ed
commit 2482f718f8
4 changed files with 13 additions and 2 deletions
+7
View File
@@ -1,3 +1,7 @@
glancedata:
image: kollaglue/centos-rdo-glance-data:latest
name: glance-data
glanceregistry:
image: kollaglue/centos-rdo-glance-registry:latest
name: glance-registry
@@ -5,6 +9,7 @@ glanceregistry:
restart: always
env_file:
- openstack.env
glanceapi:
image: kollaglue/centos-rdo-glance-api:latest
name: glance-api
@@ -12,3 +17,5 @@ glanceapi:
restart: always
env_file:
- openstack.env
volumes_from:
- glancedata
@@ -1,8 +1,6 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%glance-base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
VOLUME /var/lib/glance
ADD ./start.sh /start.sh
ADD ./check.sh /check.sh
+5
View File
@@ -0,0 +1,5 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
VOLUME [ "/var/lib/glance" ]
CMD ["/bin/true"]
+1
View File
@@ -0,0 +1 @@
../../../tools/build-docker-image