Fix the slow start of mariadb container

Adding '-e MYSQL_INITDB_SKIP_TZINFO=1' when starting database
container.

Ref:
https://github.com/docker-library/mariadb/issues/262

Change-Id: I3398557700dd76ec831e441ba074032fd4b67cca
This commit is contained in:
Lingxian Kong 2020-07-18 21:55:20 +12:00
parent 828e873846
commit 058490a609

View File

@ -626,6 +626,7 @@ class BaseMySqlApp(object):
user=user,
environment={
"MYSQL_ROOT_PASSWORD": root_pass,
"MYSQL_INITDB_SKIP_TZINFO": 1,
},
command=command
)