Merge remote-tracking branch 'netroby/master'

This commit is contained in:
Michal Čihař
2015-12-04 08:09:59 +01:00
3 changed files with 43 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM netroby/alpine-php
RUN wget --no-check-certificate -c https://github.com/phpmyadmin/phpmyadmin/archive/RELEASE_4_5_2.tar.gz; \
tar zxvf RELEASE_4_5_2.tar.gz;\
mv phpmyadmin-RELEASE_4_5_2 /www; \
unlink *.tar.gz
COPY config.inc.php /www/config.inc.php
EXPOSE 8080
ENTRYPOINT ["php", "-S", "0.0.0.0:8080", "-t", "/www/"]
CMD []
+11
View File
@@ -0,0 +1,11 @@
<?php
$cfg['blowfish_secret'] = 'xkjdkfj2x83kx';
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'db';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
+18
View File
@@ -0,0 +1,18 @@
# alpine linux + php + phpmyadmin
Update 2015-11-06
Run PHPMyAdmin with alpine + php built in web server
## Usage
First, you need to run mysql in docker, and this image need link a running mysql instance container
```
docker run --name myadmin -d --link mysql_db_server:db -p 8080:8080 netroby/alpine-phpmyadmin
```
Then open browser, visit http://***.***.host.ip:8080
You will see the phpmyadmin login page