Created
August 3, 2020 14:58
-
-
Save shinshin86/c4edfedbfa6b817bcf8e2181624c7f09 to your computer and use it in GitHub Desktop.
MySQL Sakila Sample Database on Docker(Referring to the Repository of "budougumi0617/mysql-sakila")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Sakila Sample Database: https://dev.mysql.com/doc/sakila/en/ | |
| # Use Repository: https://github.com/budougumi0617/mysql-sakila | |
| git clone https://github.com/budougumi0617/mysql-sakila.git | |
| # Use version of 5.7 | |
| cd mysql-sakila/5.7 | |
| cp -r ../sakila-db . | |
| docker build -t sakila-data-mysql-5.7 . | |
| # Start MySQL on Docker (port: 3306) | |
| docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 --name sakila-data-mysql-5.7-01 sakila-data-mysql-5.7 mysqld |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment