mirror of https://github.com/fspc/ybdb.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
801 B
26 lines
801 B
########
|
|
# YBDB #
|
|
########
|
|
# YBP Hours and Transaction Database
|
|
# Password is
|
|
|
|
FROM bikebike/bikebike
|
|
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 .; \
|
|
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
|
|
|
|
COPY mysql.conf /etc/supervisor/conf.d/
|
|
COPY apache2.conf /etc/supervisor/conf.d/
|
|
|
|
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
|
|
|
|
# docker run -d -p 81:80 --name="ybdb" bikebike/ybdb
|
|
|