From f24a10839c474523c89c075a2746a637684985c8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Sat, 16 Aug 2014 21:49:00 -0400 Subject: [PATCH] Add a phpmyadmin tool that can run locally --- tools/phpmyadmin/Dockerfile | 31 +++++++++++++++++ tools/phpmyadmin/config.inc.php | 59 +++++++++++++++++++++++++++++++++ tools/phpmyadmin/run-admin.sh | 4 +++ 3 files changed, 94 insertions(+) create mode 100644 tools/phpmyadmin/Dockerfile create mode 100644 tools/phpmyadmin/config.inc.php create mode 100755 tools/phpmyadmin/run-admin.sh diff --git a/tools/phpmyadmin/Dockerfile b/tools/phpmyadmin/Dockerfile new file mode 100644 index 000000000..ce28ec461 --- /dev/null +++ b/tools/phpmyadmin/Dockerfile @@ -0,0 +1,31 @@ +FROM phusion/baseimage:0.9.9 + +ENV DEBIAN_FRONTEND noninteractive +ENV HOME /root +ENV UPDATE_APT 2 + +RUN apt-get update + +# Install LAMP +RUN apt-get install -y lamp-server^ + +# Install phpMyAdmin +RUN mysqld & \ + service apache2 start; \ + sleep 5; \ + printf y\\n\\n\\n1\\n | apt-get install -y phpmyadmin; \ + sleep 15; \ + mysqladmin -u root shutdown + + +# Setup phpmyadmin to run +RUN echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf +RUN rm /etc/phpmyadmin/config.inc.php + +ADD config.inc.php /etc/phpmyadmin/config.inc.php + +ADD run-admin.sh /etc/service/phpadmin/run + +EXPOSE 80 + +CMD ["/sbin/my_init"] \ No newline at end of file diff --git a/tools/phpmyadmin/config.inc.php b/tools/phpmyadmin/config.inc.php new file mode 100644 index 000000000..ff46c17c8 --- /dev/null +++ b/tools/phpmyadmin/config.inc.php @@ -0,0 +1,59 @@ +