Public Repository

Last pushed: 2 years ago
Short Description
mysql image with hook to send --init-file
Full Description

When ran, mysql server will be installed (just like in the mysql image) and in addition, $MYSQL_BOOTSTRAP will be sent as --init-file to mysqld.

This can be used to preload the database container with initial data.

Use like:

FROM benzaita/mysql-bootstrap

ENV MYSQL_ROOT_PASSWORD=12345 MYSQL_BOOTSTRAP=/tmp/db.sql
ADD db.sql /tmp/db.sql

EXPOSE 3306

CMD ["mysqld"]
Docker Pull Command
Owner
benzaita

Comments (0)