mirror of
https://github.com/fspc/ybdb.git
synced 2026-09-17 17:01:36 -04:00
This adds a populate sql file, better doc, and uses a devel branch of
YBDB.
This commit is contained in:
+4
-2
@@ -10,16 +10,18 @@ MAINTAINER Jonathan Rosenbaum <gnuser@gmail.com>
|
||||
RUN apt-get update && apt-get -y install apache2-mpm-prefork php5 php5-mysql;
|
||||
RUN cd /var/www/html/; \
|
||||
rm index.html; \
|
||||
git clone git://github.com/fspc/Yellow-Bike-Database.git .; \
|
||||
git clone -b devel https://github.com/fspc/Yellow-Bike-Database.git .; \
|
||||
rm YBDB.php
|
||||
COPY YBDB.php /var/www/html/Connections/
|
||||
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/MySQL_Structure.sql; \
|
||||
mysql ybdb < /var/www/html/populate.sql;
|
||||
|
||||
COPY mysql.conf /etc/supervisor/conf.d/
|
||||
COPY apache2.conf /etc/supervisor/conf.d/
|
||||
COPY sshd.conf /etc/supervisor/conf.d/
|
||||
|
||||
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user