docker-library/mysql — pull request #33 by benkiefer (2014-12-10 14:55:31+00:00)
Title: improve the start speed of the container 

We were noticing a significant decrease in container start time compared to when we were using the postgres container (20 seconds w/mysql vs 2 seconds) and started to do some debugging to figure out where the pain was. It turns out it came mostly from 'mysql_install_db' step in the entrypoint. Since this container is opinionated about always using the mysql user anyway, it seemed to make sense to move this to the initial build of the container, rather than as part of the run.

The container now starts up in 2-3 seconds.

I'd like to know what you think of this, and if there were any reasons that the mysql_install_db step was part of the entrypoint vs part of the container build.

I only applied this change to 5.7 because I wanted to talk about it before going down the route of making this change to all three versions.

Thanks for the feedback.