Sign inSign up

jonbrouse/mysql

By jonbrouse

•Updated over 10 years ago

It's a MySQL image. It's my MySQL image. I'm not using your shady MySQL image.

Image
0

433

jonbrouse/mysql repository overview

⁠MySQL Docker Image

⁠How to use this image

⁠Add Your Seed SQL Data Files

This Docker MySQL image has ONBUILD commands to create and import your databases. Place your databases in the assets/databases folder. The basename of your SQL file will be used as the database name.

For example, if you add the SQL dump microservicedb.sql to ./assets/databases/ a database named microservicedb with the content of ./assets/databases/microservicedb.sql will be created when you build a new image.

⁠Create a Dockerfile

The docker-compose.yml file uses an alternate Dockerfile. When creating this Dockerfile name it Dockerfile-alt

FROM jonbrouse/mysql
ENTRYPOINT ["mysqld"]
⁠Build and Start Your Container
docker-compose build
docker-compose up -d

Tag summary

Content type

Image

Digest

sha256:1df319019…

Size

48.6 MB

Last updated

over 10 years ago

docker pull jonbrouse/mysql