Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Added extension hook for child images bootstrapping the database #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 5.5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ if [[ ! -d $VOLUME_HOME/mysql ]]; then
echo "=> Done!"
echo "=> Creating admin user ..."
/create_mysql_admin_user.sh
if [ -e "/boostrap.sh" ]; then
echo "=> Starting MySQL ..."
StartMySQL
echo "=> Executing bootstrap script..."
/bootstrap.sh
echo "=> Completed bootstrapping ..."
mysqladmin -uroot shutdown
fi
else
echo "=> Using an existing volume of MySQL"
fi
Expand Down
8 changes: 8 additions & 0 deletions 5.6/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ if [[ ! -d $VOLUME_HOME/mysql ]]; then
echo "=> Done!"
echo "=> Creating admin user ..."
/create_mysql_admin_user.sh
if [ -e "/boostrap.sh" ]; then
echo "=> Starting MySQL ..."
StartMySQL
echo "=> Executing bootstrap script..."
/bootstrap.sh
echo "=> Completed bootstrapping ..."
mysqladmin -uroot shutdown
fi
else
echo "=> Using an existing volume of MySQL"
fi
Expand Down