Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shinshin86/c4edfedbfa6b817bcf8e2181624c7f09 to your computer and use it in GitHub Desktop.

Select an option

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")
#!/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