From 1164500c4a3fad26b610a18c84761a5f509f5563 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 28 Dec 2014 03:09:37 +0000 Subject: [PATCH] This should solve mysql problem when bikebike/bikebike has not been updated. --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9403ca8..b9f4d5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,12 @@ RUN service mysql start; \ mysql ybdb < /var/www/html/sql/MySQL_Structure.sql; \ mysql ybdb < /var/www/html/sql/populate.sql; -##COPY mysql.conf /etc/supervisor/conf.d/ +# This solves a problem which occurs if bikebike/bikebike has not been +# updated in a long time where mysql cannot find Table mysql.db when started +# with mysqld_safe +RUN mysql_install_db; + +COPY mysql.conf /etc/supervisor/conf.d/ COPY apache2.conf /etc/supervisor/conf.d/ CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]