Make mariadb use a data container without a bindmount

A data container is meant to operate without bindmounts.

Change-Id: I2624a63fd75db7ed8050054c17e19885f8a7ac8a
Co-Authored-By: Daneyon Hansen (danehans@cisco.com)
This commit is contained in:
Steven Dake 2015-03-21 16:17:01 -07:00
parent f4fd47dc2c
commit c2b92c5e96
2 changed files with 5 additions and 5 deletions

View File

@ -1,14 +1,12 @@
mariadbdata:
image: kollaglue/centos-rdo-mariadb-data
volumes:
- /var/lib/mysql:/var/lib/mysql
net: "host"
privileged: true
name: mariadbdata
mariadbapp:
image: kollaglue/centos-rdo-mariadb-app
name: mariadbapp
env_file:
- openstack.env
volumes_from:
- mariadbdata
net: "host"
privileged: true

View File

@ -1,6 +1,8 @@
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
MAINTAINER Kolla Project (https://launchpad.net/kolla)
VOLUME [ "/var/lib/mysql" ]
# Command needed to start the data container.
# Note: data containers do not need to be persistent.
CMD ["/bin/sh"]