Added Percona container as an alternative to mysql mariadb

This commit is contained in:
Diego Antunes
2017-04-18 10:19:09 +12:00
parent 8ed8bfdc2a
commit ba32dedbef
5 changed files with 50 additions and 4 deletions

11
percona/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM percona:5.7
MAINTAINER DTUNES <diegotdai@gmai.com>
RUN chown -R mysql:root /var/lib/mysql/
ADD my.cnf /etc/mysql/conf.d/my.cnf
CMD ["mysqld"]
EXPOSE 3306

9
percona/my.cnf Normal file
View File

@ -0,0 +1,9 @@
# The MySQL Client configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
[mysql]
[mysqld]
sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"