summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Applications/phpmyadmin/Dockerfile14
-rw-r--r--Applications/phpmyadmin/README.md36
-rw-r--r--Applications/phpmyadmin/config.inc.php2
-rw-r--r--OS/Fedora/README.md4
-rw-r--r--Services/php/README.md4
5 files changed, 42 insertions, 18 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;
diff --git a/OS/Fedora/README.md b/OS/Fedora/README.md
index 6e33b8d..03b2797 100644
--- a/OS/Fedora/README.md
+++ b/OS/Fedora/README.md
@@ -2,7 +2,7 @@
## Running from docker registry
- # docker run -d -p 22022:22 --name="test-fedora" startx/fedora
+ # docker run -d -p 22022:22 --name="test-fedora" -e VIRTUAL_HOST=fedora.project.startx.fr startx/fedora
## Running from local Dockerfile
@@ -19,7 +19,7 @@ and build the container
### Running local image
- # docker run -d -p 22022:22 --name="test-fedora" <username>/ssh
+ # docker run -d -p 22022:22 --name="test-fedora" -e VIRTUAL_HOST=fedora.project.startx.fr <username>/ssh
## Accessing server
diff --git a/Services/php/README.md b/Services/php/README.md
index ede4427..f0b0326 100644
--- a/Services/php/README.md
+++ b/Services/php/README.md
@@ -2,7 +2,7 @@
## Running from docker registry
- # docker run -d -p 8080:80 --name="test-www" startx/sv-php
+ # docker run -d -p 8080:80 --name="test-www" -e VIRTUAL_HOST=www.project.startx.fr startx/sv-php
## Running from local Dockerfile
@@ -19,7 +19,7 @@ and build the container
### Running local image
- # docker run -d -p 8080:80 --name="test-www" <username>/www
+ # docker run -d -p 8080:80 --name="test-www" -e VIRTUAL_HOST=www.project.startx.fr <username>/www
## Accessing server