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:
parent
0c5d6575ed
commit
2482f718f8
@ -1,3 +1,7 @@
|
|||||||
|
glancedata:
|
||||||
|
image: kollaglue/centos-rdo-glance-data:latest
|
||||||
|
name: glance-data
|
||||||
|
|
||||||
glanceregistry:
|
glanceregistry:
|
||||||
image: kollaglue/centos-rdo-glance-registry:latest
|
image: kollaglue/centos-rdo-glance-registry:latest
|
||||||
name: glance-registry
|
name: glance-registry
|
||||||
@ -5,6 +9,7 @@ glanceregistry:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- openstack.env
|
- openstack.env
|
||||||
|
|
||||||
glanceapi:
|
glanceapi:
|
||||||
image: kollaglue/centos-rdo-glance-api:latest
|
image: kollaglue/centos-rdo-glance-api:latest
|
||||||
name: glance-api
|
name: glance-api
|
||||||
@ -12,3 +17,5 @@ glanceapi:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- openstack.env
|
- openstack.env
|
||||||
|
volumes_from:
|
||||||
|
- glancedata
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%glance-base:%%KOLLA_TAG%%
|
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%glance-base:%%KOLLA_TAG%%
|
||||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
VOLUME /var/lib/glance
|
|
||||||
|
|
||||||
ADD ./start.sh /start.sh
|
ADD ./start.sh /start.sh
|
||||||
ADD ./check.sh /check.sh
|
ADD ./check.sh /check.sh
|
||||||
|
|
||||||
|
5
docker/glance/glance-data/Dockerfile
Normal file
5
docker/glance/glance-data/Dockerfile
Normal 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
docker/glance/glance-data/build
Symbolic link
1
docker/glance/glance-data/build
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../tools/build-docker-image
|
Loading…
Reference in New Issue
Block a user