How to Build Docker Image Builder by using MySQL as Build component (like EC2 Image builder Golden AMI)?

Solution for How to Build Docker Image Builder by using MySQL as Build component (like EC2 Image builder Golden AMI)?
is Given Below:

How to Build Docker Image Builder by using MySQL(yaml) as Build component