From ce9256e0c79ec96de149466078ba7c28adfcf702 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 3 Jun 2016 13:19:58 +0800 Subject: [PATCH] add phpmyadmin --- README.md | 2 ++ phpmyadmin/README.md | 11 +++++++++ phpmyadmin/arm/Dockerfile | 37 +++++++++++++++++++++++++++++++ phpmyadmin/arm/docker-compose.yml | 8 +++++++ phpmyadmin/docker-compose.yml | 8 +++++++ 5 files changed, 66 insertions(+) create mode 100644 phpmyadmin/README.md create mode 100644 phpmyadmin/arm/Dockerfile create mode 100644 phpmyadmin/arm/docker-compose.yml create mode 100644 phpmyadmin/docker-compose.yml diff --git a/README.md b/README.md index e130233..7274b16 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ A collection of delicious docker recipes. - [x] pdnsd - [x] phantomjs - [x] phpbb +- [x] phpmyadmin-arm - [x] piwik - [x] plex :moneybag: - [x] polipo @@ -141,6 +142,7 @@ A collection of delicious docker recipes. - [x] mongo - [x] neo4j - [x] owncloud +- [x] phpmyadmin - [x] rocket.chat - [x] scrapinghub/splash - [ ] selenium diff --git a/phpmyadmin/README.md b/phpmyadmin/README.md new file mode 100644 index 0000000..a7357da --- /dev/null +++ b/phpmyadmin/README.md @@ -0,0 +1,11 @@ +phpMyAdmin +========== + +[phpMyAdmin][1] is a free software tool written in PHP, intended to handle the +administration of MySQL over the Web. phpMyAdmin supports a wide range of +operations on MySQL and MariaDB. Frequently used operations (managing +databases, tables, columns, relations, indexes, users, permissions, etc) can be +performed via the user interface, while you still have the ability to directly +execute any SQL statement. + +[1]: http://www.phpmyadmin.net/ diff --git a/phpmyadmin/arm/Dockerfile b/phpmyadmin/arm/Dockerfile new file mode 100644 index 0000000..c760d6c --- /dev/null +++ b/phpmyadmin/arm/Dockerfile @@ -0,0 +1,37 @@ +# +# Dockerfile for phpmyadmin-arm +# + +FROM easypi/alpine-arm:3.4 +MAINTAINER kev + +WORKDIR /www/ + +RUN set -xe \ + && apk add -U curl \ + php5-cli \ + php5-ctype \ + php5-curl \ + php5-gd \ + php5-json \ + php5-mcrypt \ + php5-mysqli \ + php5-opcache \ + php5-openssl \ + php5-xml \ + php5-zlib \ + tar \ + && curl -sSL https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar xz --strip 1 \ + && rm -rf ./examples/ ./js/jquery/src/ ./po/ \ + && curl -sSL https://github.com/phpmyadmin/docker/raw/master/config.inc.php > ./config.inc.php \ + && curl -sSL https://github.com/phpmyadmin/docker/raw/master/run.sh > /run.sh \ + && chmod +x /run.sh \ + && apk del curl tar \ + && rm -rf /var/cache/apk/* + +ENV PHP_UPLOAD_MAX_FILESIZE=64M +ENV PHP_MAX_INPUT_VARS=2000 + +EXPOSE 80 + +CMD ["/run.sh"] diff --git a/phpmyadmin/arm/docker-compose.yml b/phpmyadmin/arm/docker-compose.yml new file mode 100644 index 0000000..b14a4f0 --- /dev/null +++ b/phpmyadmin/arm/docker-compose.yml @@ -0,0 +1,8 @@ +phpmyadmin: + image: easypi/phpmyadmin-arm + ports: + - "8080:80" + environment: + - PMA_HOST=dbhost + - PMA_PORT=3306 + restart: always diff --git a/phpmyadmin/docker-compose.yml b/phpmyadmin/docker-compose.yml new file mode 100644 index 0000000..658387e --- /dev/null +++ b/phpmyadmin/docker-compose.yml @@ -0,0 +1,8 @@ +phpmyadmin: + image: phpmyadmin/phpmyadmin + ports: + - "8080:80" + environment: + - PMA_HOST=dbhost + - PMA_PORT=3306 + restart: always