add phpmyadmin

This commit is contained in:
kev 2016-06-03 13:19:58 +08:00
parent 07c4de141c
commit ce9256e0c7
5 changed files with 66 additions and 0 deletions

View File

@ -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

11
phpmyadmin/README.md Normal file
View File

@ -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/

37
phpmyadmin/arm/Dockerfile Normal file
View File

@ -0,0 +1,37 @@
#
# Dockerfile for phpmyadmin-arm
#
FROM easypi/alpine-arm:3.4
MAINTAINER kev <noreply@easypi.info>
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"]

View File

@ -0,0 +1,8 @@
phpmyadmin:
image: easypi/phpmyadmin-arm
ports:
- "8080:80"
environment:
- PMA_HOST=dbhost
- PMA_PORT=3306
restart: always

View File

@ -0,0 +1,8 @@
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
environment:
- PMA_HOST=dbhost
- PMA_PORT=3306
restart: always