Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miraculixx/dokku-mysql-dockerfiles
Dockerfiles to build MySql container for Dokku
https://github.com/miraculixx/dokku-mysql-dockerfiles
Last synced: 8 days ago
JSON representation
Dockerfiles to build MySql container for Dokku
- Host: GitHub
- URL: https://github.com/miraculixx/dokku-mysql-dockerfiles
- Owner: miraculixx
- Created: 2015-07-20T14:56:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T19:45:45.000Z (about 9 years ago)
- Last Synced: 2024-10-07T20:04:18.818Z (29 days ago)
- Language: Shell
- Size: 108 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MySql Dockerfile
Dockerfiles for building a basic MySql server in a Docker container. Created for and used by [hughfletcher/dokku-mysql-plugin](https://github.com/hughfletcher/dokku-mysql-plugin), a Dokku plugin. For use with it see those docs.
To install without plugin:
sudo docker build -t hughfletcher/mysql github.com/hughfletcher/dokku-mysql-dockerfiles
By default username is 'admin' and password is 'mysql-server'. But then you can do this and more...
# Run the container and snag the id/ip
$ ID=$(sudo docker run hughfletcher/mysql /usr/sbin/mysqld)
$ IP=sudo docker inspect $ID | grep IPAddress | cut -d '"' -f 4# Config your db however
$ sudo docker run hughfletcher/mysql mysqladmin -h $IP -u admin -p'mysql-server' password
$ sudo docker run hughfletcher/mysql mysqladmin -h $IP -u admin -p'mysql-server' create
$ sudo docker run hughfletcher/mysql mysql -h $IP -u admin -p'mysql-server' -e "RENAME USER admin@'%' TO @'%';"## Todo
* Tests## Dependents/Uses
* [Docker](http://www.docker.io)
* [progrium/dokku](https://github.com/progrium/dokku) (only when used with plugin)
* [hughfletcher/dokku-mysql-plugin](https://github.com/hughfletcher/dokku-mysql-plugin) (only when used with plugin)## Thanks
* [kstaken/dockerfile-examples](https://github.com/kstaken/dockerfile-examples)
* [Installing MariaDB/MySQL with Docker](http://amattn.com/2013/08/29/installing_maria_db_mysql_with_docker.html)