From 0f527de9a7afe7cd8d6337c3886791d498c313a8 Mon Sep 17 00:00:00 2001 From: William Miceli Date: Sun, 24 Nov 2019 14:25:51 -0500 Subject: [PATCH] Added command to execute friendBook SQL script --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 4a0f5ef..ce3d439 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,15 @@ #!/bin/sh +# Starting base services echo "[ INFO ] Starting MySQL Server" service mysql start echo "[ INFO ] Starting PHP 7.2 Service" service php7.2-fpm start +# Running friendBook database setup script +echo "[ INFO ] Setting up friendBook database" +mysql -u root < /scripts/friendBook.sql + echo "[ INFO ] Starting nginx" nginx -g "daemon off;" # Foreground