Lots of dev with transactions, and updated population file.

This commit is contained in:
Jonathan Rosenbaum
2014-12-20 02:45:51 +00:00
parent 0c3f00a7e7
commit dba7d9fbe2
2 changed files with 84 additions and 13 deletions
+3 -3
View File
@@ -13,12 +13,12 @@ RUN cd /var/www/html/; \
git clone -b devel https://github.com/fspc/Yellow-Bike-Database.git .
COPY YBDB.php /var/www/html/Connections/
COPY populate.sql /var/www/html/
COPY populate.sql /var/www/html/sql/
RUN service mysql start; \
mysqladmin create ybdb; \
mysql -e "GRANT ALL PRIVILEGES ON ybdb.* TO 'admin'@'%' IDENTIFIED BY 'yblcatx' with grant option"; \
mysql ybdb < /var/www/html/MySQL_Structure.sql; \
mysql ybdb < /var/www/html/populate.sql;
mysql ybdb < /var/www/html/sql/MySQL_Structure.sql; \
mysql ybdb < /var/www/html/sql/populate.sql;
COPY mysql.conf /etc/supervisor/conf.d/
COPY apache2.conf /etc/supervisor/conf.d/