diff options
author | startxfr <clarue@startx.fr> | 2014-11-20 09:34:55 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-11-20 09:34:55 +0100 |
commit | 910a26141f16336c96e304ebe850a4e5a0f97f95 (patch) | |
tree | bc1eef413af3a0c1b7bd3eeda7ceafc8d6ed87b2 /Services/mongo | |
parent | 7f7d7e70ec819dbc4f1d88e29420e59549add0a9 (diff) | |
download | phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.gz phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.bz2 phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.tar.xz phpmyadmin-910a26141f16336c96e304ebe850a4e5a0f97f95.zip |
modif des readme de chaque container pour etre plus expressif
Diffstat (limited to 'Services/mongo')
-rw-r--r-- | Services/mongo/Dockerfile | 2 | ||||
-rw-r--r-- | Services/mongo/README.md | 42 | ||||
-rw-r--r-- | Services/mongo/mongo_run.sh | 2 |
3 files changed, 35 insertions, 11 deletions
diff --git a/Services/mongo/Dockerfile b/Services/mongo/Dockerfile index 5367713..aee3456 100644 --- a/Services/mongo/Dockerfile +++ b/Services/mongo/Dockerfile @@ -1,5 +1,5 @@ FROM startx/fedora -MAINTAINER Chistophe LARUE <dev@startx.fr> +MAINTAINER Christophe LARUE <dev@startx.fr> COPY mongo_run.sh /bin/ RUN yum -y install \ diff --git a/Services/mongo/README.md b/Services/mongo/README.md index 7b0f9ef..0e1a2b8 100644 --- a/Services/mongo/README.md +++ b/Services/mongo/README.md @@ -1,14 +1,36 @@ -STARTX docker-images - MongoDB -============================== +# STARTX Services docker-images : MongoDB Server +This container run mongod on fedora server. -**Description** -Based on the docker [default mongo](https://registry.hub.docker.com/_/mongo/) Dockerfile +## Running from docker registry -**Usage** + # docker run -d -p 27017:27017 --name="mongo" startx/sv-mongo + # when linked to another container + # docker run -d --name="mongo" startx/sv-mongo + # docker run -d --name="php" --link mongo:mongo startx/sv-php - docker run --name="test-mongo" -d startx/sv-mongo - docker run -d -p 27017:27017 startx/sv-mongo - docker run -d -p 27017:27017 --name="test-mongo" startx/sv-mongo +## Build and run from local Dockerfile +### Building docker image +Copy the sources to your docker host + + mkdir startx-docker-images; + cd startx-docker-images; + git clone https://github.com/startxfr/docker-images.git . + +and build the container + + docker build -t sv-mongo Services/mongo/ + +### Running local image + + # docker run -d -p 27017:27017 --name="mongo" sv-mongo + +## Accessing server + + # mongo -h localhost -p 27017 + +## Related Resources +* [Sources files](https://github.com/startxfr/docker-images/tree/master/Services/mongo) +* [Github STARTX profile](https://github.com/startxfr/docker-images) +* [Docker registry for this container](https://registry.hub.docker.com/u/startx/sv-mongo/) +* [Docker registry for Fedora](https://registry.hub.docker.com/u/fedora/) - docker run -d --name="test-mongo" startx/sv-mongo // linked to another container - docker run -d --name="test-www" --link test-mongo:mongo startx/sv-php diff --git a/Services/mongo/mongo_run.sh b/Services/mongo/mongo_run.sh new file mode 100644 index 0000000..09eba06 --- /dev/null +++ b/Services/mongo/mongo_run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/bin/mongod --config /etc/mongodb.conf
\ No newline at end of file |