From 078fc3dde73e6c80aef1b4ff9d3dcbf0789da724 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 15:50:42 +0100 Subject: modif de code example dans les readme --- README.md | 94 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 44 insertions(+), 50 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 637ead3..d6d13a7 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,44 @@ -docker-images -============= - -**Description** -This repository contains a collection of Docker configurations used in STARTX IS. - -**Usage** -The following commands can be used to deploy some of the services offered by the Docker containers in this repository. - -- **Applications (app)** - - - **phpmyadmin** -Based on the [maxexcloo phpmyadmin](https://github.com/maxexcloo/Docker) Dockerfile - - 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 maria:maria -e VIRTUAL_HOST=pma.project.dev.startx.fr startx/app-phpmyadmin - - - **rockmongo** -Based on the [maxexcloo phpmyadmin](https://github.com/maxexcloo/Docker) Dockerfile - - docker run --name="test-rockmongo" -p 82:80 -d -e VIRTUAL_HOST=rm.project.dev.startx.fr startx/rockmongo - docker run --name="test-rockmongo" -d --link mongo:mongo -e VIRTUAL_HOST=mongo.project.dev.startx.fr startx/app-rockmongo - -- **Services (sv)** - - - **php** -Based on the [tutum php](https://registry.hub.docker.com/u/tutum/apache-php) Dockerfile - - docker run --name="test-web" -d -e VIRTUAL_HOST=web.project.dev.startx.fr startx/sv-php - - - **mariadb** - - docker run --name="test-maria" -d startx/sv-maria - - - **mongodb** - - docker run --name="test-mongo" -d startx/sv-mongo - - - **mysqldb** - - docker run --name="test-mysql" -d startx/sv-mysql - - - **postgres** - - docker run --name="test-postgres" -d startx/sv-postgres - - - **ooconv** - - docker run --name="test-ooconv" -d startx/sv-ooconv - +# STARTX docker-images repository +Docker container images + +## Running container from docker registry images +* Operating Systems + * Fedora ```docker run -it --name="fedora" startx/fedora bash``` +* Services + * Apache ```docker run -d -p 80:80 --name="apache" startx/sv-apache``` + * MariaDB ```docker run -d -p 3306:3306 --name="mariadb" startx/sv-mariadb``` + * Memcache ```docker run -d -p 11211:11211 --name="memcache" startx/sv-memcache``` + * MongoDB ```docker run -d -p 27017:27017 --name="mongo" startx/sv-mongo``` + * nodejs ```docker run -d -p 8000:8000 --name="nodejs" startx/sv-nodejs``` + * ooconv ```docker run -d -p XXX:XXX --name="ooconv" startx/sv-ooconv``` + * php ```docker run -d -p 80:80 --name="php" startx/sv-php``` + * postgreSQL ```docker run -d -p 5432:5432 --name="postgres" startx/sv-postgres``` + * SSH ```docker run -d -p 22:22 --name="ssh" startx/sv-ssh``` +* Applications + * PhpMyAdmin ```docker run -d -p 80:80 --name="pma" startx/app-pma``` + * RockMongo ```docker run -d -p 80:80 --name="rockmongo" startx/app-rockmongo``` + +## Build and run from local Dockerfile +### Building docker image +Copy sources in your docker host / build server + + mkdir startx-docker-images; + cd startx-docker-images; + git clone https://github.com/startxfr/docker-images.git . + +Build the container + + docker build -t + +### Running local image +Running an interactive image and get access to shell + + docker run -it bash + +Running an image as a daemon + docker run -d + +## Related Resources +* [Sources files](https://github.com/startxfr/docker-images/tree/master/) +* [Github STARTX profile](https://github.com/startxfr/docker-images) +* [Docker registry for this container](https://registry.hub.docker.com/u/startx/fedora/) \ No newline at end of file -- cgit v1.2.3