Sign inSign up

sysreport/mysql

By sysreport

•Updated almost 10 years ago

A small MySQL Container based on Alpine

Image
0

501

sysreport/mysql repository overview

TravisCI Build StatusCircleCI Build StatusDocker Automated buil

⁠docker-mysql

This is a docker container with mysql. The intention to build this container is to make it as small as possible. Therefore, this container is based on alpine.

⁠Usage

You must set the MYSQL_USER and the MYSQL_PASS variable. Create a empty folder on your local storage and set this to your_local_path.

docker build -t sysreport/mysql . # build the container
docker run --detach --name mysql -v <your_local_path>:/var/lib/mysql -e "MYSQL_USER=<your_user>" -e "MYSQL_PASS=<your_pass>" -p 3306:3306 sysreport/mysql # start the container
docker exec -i -t mysql /bin/bash # log in the container

Ok, the run command is very long. Its time to use a Makefile or Env Var's.

⁠Versions

Container VersionMariaDB VersionMySQL Version
latest10.1.185.5.5
develop10.1.185.5.5
0.110.1.185.5.5

⁠TODO

  • create docker-compose file
  • expand testing for circleCI
  • expand testing for travisCI
  • parameterized the startup.sh file for use with env vars or docker-compose
    • databases to create
    • binlog_format value (ROW, STATEMENT, INDIVIDUAL)

Tag summary

Content type

Image

Digest

Size

42.1 MB

Last updated

almost 10 years ago

docker pull sysreport/mysql