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:
parent
f4fd47dc2c
commit
c2b92c5e96
@ -1,14 +1,12 @@
|
|||||||
mariadbdata:
|
mariadbdata:
|
||||||
image: kollaglue/centos-rdo-mariadb-data
|
image: kollaglue/centos-rdo-mariadb-data
|
||||||
volumes:
|
name: mariadbdata
|
||||||
- /var/lib/mysql:/var/lib/mysql
|
|
||||||
net: "host"
|
|
||||||
privileged: true
|
|
||||||
mariadbapp:
|
mariadbapp:
|
||||||
image: kollaglue/centos-rdo-mariadb-app
|
image: kollaglue/centos-rdo-mariadb-app
|
||||||
|
name: mariadbapp
|
||||||
env_file:
|
env_file:
|
||||||
- openstack.env
|
- openstack.env
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- mariadbdata
|
- mariadbdata
|
||||||
net: "host"
|
net: "host"
|
||||||
privileged: true
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
|
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
|
||||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
VOLUME [ "/var/lib/mysql" ]
|
||||||
|
|
||||||
# Command needed to start the data container.
|
# Command needed to start the data container.
|
||||||
# Note: data containers do not need to be persistent.
|
# Note: data containers do not need to be persistent.
|
||||||
CMD ["/bin/sh"]
|
CMD ["/bin/sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user