Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bertoni/dockerfile-mysql


https://github.com/bertoni/dockerfile-mysql

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Minimal environment for CentOs + Mysql
======================================

Use with Docker http://www.docker.io

This Dockerfile provide an environment Centos + Mysql for to be used in the developing environment, for to be faster and more productive create databases.
Questions as security and performance were not thought.

To construct the image

cd
docker build -t .

To run the container

docker run -i -t --name mysql -p 3306:3306 -v :/tmp/external

To exit of the container press Ctrl+p+q

To enter in the container terminal

List the containers
docker ps -a

Enter in the mysql conatiner
docker exec -i -t bash

Enter in the mysql terminal
mysql -u root -p'password'

Obs:

:: Remember of give execution permission for the file run.sh [chmod a+x /run.sh]

:: Put your dumps in the same folder of the file run.sh. The name of that dumps need to be the same of the database

:: Change the file run.sh and include the names of the databases to be included

:: The password root is 'root', but you can change it by changing the file Dockerfile