Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bertoni/dockerfile-mysql
https://github.com/bertoni/dockerfile-mysql
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bertoni/dockerfile-mysql
- Owner: bertoni
- Created: 2016-01-06T15:12:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-06T15:19:21.000Z (almost 9 years ago)
- Last Synced: 2023-05-04T21:15:04.574Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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