Create mysql user for non-ha deployments
authorMartin Mágr <mmagr@redhat.com>
Fri, 29 Sep 2017 12:07:46 +0000 (14:07 +0200)
committerMartin Mágr <mmagr@redhat.com>
Mon, 9 Oct 2017 12:20:35 +0000 (14:20 +0200)
commit48157625981848fae97e24dc01da213ea7e3fb4a
tree2ae643208b6258c4d6455be2373d8dda748a975e
parent6fea40f786a466802503c03b2b815d05676e1807
Create mysql user for non-ha deployments

Currently health check for mysql container reports unhealthy container
because there is no 'mysql' user created. This patch creates the user
during mysql_bootstrap without any permission, just to allow health
check to connect to DB and run 'select 1'.

Change-Id: Iab26da0d30939b219189d4e7beb2a61d456ab7c3
Closes-Bug: #1718944
(cherry picked from commit 3a9cfaa992e92423461d64f84d701336322bdd10)
docker/services/database/mysql.yaml