commit 7871d511654089f9c74198035a478fa9600251dc Author: Jonathan Rosenbaum Date: Thu Dec 11 19:56:16 2014 +0000 Finally available to the general public. diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35465a4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +######## +# YBDB # +######## +# YBP Hours and Transaction Database +# Password is + +FROM bikebike/bikebike +MAINTAINER Jonathan Rosenbaum + +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 diff --git a/YBDB.php b/YBDB.php new file mode 100644 index 0000000..b2ea845 --- /dev/null +++ b/YBDB.php @@ -0,0 +1,10 @@ + diff --git a/apache2.conf b/apache2.conf new file mode 100644 index 0000000..51272e1 --- /dev/null +++ b/apache2.conf @@ -0,0 +1,3 @@ +[program:apache2] +command=apachectl -D "FOREGROUND" -k start +redirect_stderr=true diff --git a/mysql.conf b/mysql.conf new file mode 100644 index 0000000..4ad6feb --- /dev/null +++ b/mysql.conf @@ -0,0 +1,3 @@ +[program:mysql] +command=/usr/bin/mysqld_safe +autorestart=true