5547b5fe78
Previously, the database container was configured for use with Kubernetes. This patch removed any k8s dependencies, adds a script to manage mysql server.cnf settings and splits data and app containers. Splitting the containers provides additional portability and operational efficiencies compared to host mounts. Change-Id: I80656450c02dda5f2959d187eec20d5877dc54a2
19 lines
484 B
Docker
19 lines
484 B
Docker
FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
# Install packages
|
|
# TODO check if hostname pkg is needed.
|
|
RUN yum -y install mariadb \
|
|
mariadb-server \
|
|
MySQL-python \
|
|
hostname \
|
|
&& yum clean all
|
|
|
|
# Add mysql configuration scripts
|
|
ADD config-mysql.sh /opt/kolla/config-mysql.sh
|
|
ADD mysql-entrypoint.sh /opt/kolla/mysql-entrypoint.sh
|
|
|
|
# start mysql
|
|
ENTRYPOINT ["/opt/kolla/mysql-entrypoint.sh"]
|
|
CMD ["mysqld_safe"]
|