summaryrefslogtreecommitdiffstats
path: root/Applications/phpmyadmin
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-16 03:40:05 +0100
committerstartxfr <clarue@startx.fr>2014-11-16 03:40:05 +0100
commit631b1064d7d21eb05d11a5cdfa186c7195a2613c (patch)
tree8e815c82ba4b8cba360de35437fa68f2a641c1fa /Applications/phpmyadmin
parent77fab0ea6f3d8fac14f0f616339483087ee0ba90 (diff)
downloadphpmyadmin-631b1064d7d21eb05d11a5cdfa186c7195a2613c.tar.gz
phpmyadmin-631b1064d7d21eb05d11a5cdfa186c7195a2613c.tar.bz2
phpmyadmin-631b1064d7d21eb05d11a5cdfa186c7195a2613c.tar.xz
phpmyadmin-631b1064d7d21eb05d11a5cdfa186c7195a2613c.zip
modif du readme de fedora
Diffstat (limited to 'Applications/phpmyadmin')
-rw-r--r--Applications/phpmyadmin/Dockerfile14
-rw-r--r--Applications/phpmyadmin/README.md36
-rw-r--r--Applications/phpmyadmin/config.inc.php2
3 files changed, 38 insertions, 14 deletions
diff --git a/Applications/phpmyadmin/Dockerfile b/Applications/phpmyadmin/Dockerfile
index 50496f4..852e8b1 100644
--- a/Applications/phpmyadmin/Dockerfile
+++ b/Applications/phpmyadmin/Dockerfile
@@ -1,8 +1,10 @@
+FROM startx/sv-php
+MAINTAINER Chistophe LARUE <dev@startx.fr>
+RUN yum -y update && yum clean all
+RUN yum -y install phpMyAdmin && yum clean all
+ADD config.inc.php /etc/phpMyAdmin/config.inc.php
+ADD test.php /var/www/html/test.php
-FROM maxexcloo/phpmyadmin:latest
-MAINTAINER startx dev@startx.fr
-
-# ajout de la conf personnalisée pour les app startx
-ADD config.inc.php /data/http/config.inc.php
-ADD test.php /data/http/test.php
+EXPOSE 80
+ENTRYPOINT ["/usr/sbin/apachectl", "-D FOREGROUND"] \ No newline at end of file
diff --git a/Applications/phpmyadmin/README.md b/Applications/phpmyadmin/README.md
index a52dcea..59eb6bd 100644
--- a/Applications/phpmyadmin/README.md
+++ b/Applications/phpmyadmin/README.md
@@ -1,10 +1,32 @@
-STARTX docker-images - PhpMyAdmin
-=================================
+# STARTX Application docker-images : PhpMyAdmin
-**Description**
-Based on the [maxexcloo phpmyadmin](https://github.com/maxexcloo/Docker) Dockerfile
+## Running from docker registry
-**Usage**
+ # docker run -d -p 8080:80 --name="test-pma" -e VIRTUAL_HOST=pma.project.startx.fr startx/app-phpmyadmin
- docker run --name="test-phpmyadmin" -p 81:80 -d -e VIRTUAL_HOST=pma.project.dev.startx.fr startx/pma
- docker run --name="test-phpmyadmin" -d --link test-maria:test-maria -e VIRTUAL_HOST=pma.project.dev.startx.fr startx/app-phpmyadmin
+## Running from local Dockerfile
+
+### Building docker image
+Copy the sources to your docker host
+
+ # mkdir startx-docker-images;
+ # git clone https://github.com/startxfr/docker-images.git startx-docker-images/
+ # cd startx-docker-images/Applications/phpmyadmin/
+
+and build the container
+
+ # docker build --rm -t <username>/pma .
+
+### Running local image
+
+ # docker run -d -p 8080:80 --name="test-pma" -e VIRTUAL_HOST=pma.project.startx.fr <username>/pma
+
+## Accessing server
+
+ # firefox http://localhost:8080
+
+## Related Resources
+
+* [Sources files](https://github.com/startxfr/docker-images/tree/master/Applications/phpmyadmin)
+* [Github STARTX profile](https://github.com/startxfr/docker-images)
+* [Docker registry for this container](https://registry.hub.docker.com/u/startx/app-phpmyadmin/) \ No newline at end of file
diff --git a/Applications/phpmyadmin/config.inc.php b/Applications/phpmyadmin/config.inc.php
index 7458071..20e4276 100644
--- a/Applications/phpmyadmin/config.inc.php
+++ b/Applications/phpmyadmin/config.inc.php
@@ -1,5 +1,5 @@
<?php
-// fichier qui provient de l'image startx/pma
+// fichier qui provient du container startx/app-pma
$cfg['blowfish_secret'] = 'SECRET';
$cfg['PmaNoRelation_DisableWarning'] = true;
$i = 0;