From a699d0d06feeb1859efea16dd6b3df17901a1bc5 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 03:17:46 +0100 Subject: modif des services et ajout de memcache, apache et nodejs --- Services/mongo/Dockerfile | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Services/mongo/Dockerfile') diff --git a/Services/mongo/Dockerfile b/Services/mongo/Dockerfile index 76d7a2f..5367713 100644 --- a/Services/mongo/Dockerfile +++ b/Services/mongo/Dockerfile @@ -1,6 +1,25 @@ +FROM startx/fedora +MAINTAINER Chistophe LARUE +COPY mongo_run.sh /bin/ +RUN yum -y install \ + mongodb \ + mongodb-server \ + libmongo-client \ + rsyslog-mongodb \ + mongodb-mms-backup-agent \ + mongodb-mms-monitoring-agent \ + && yum clean all \ + && mkdir -p /var/lib/mongodb \ + && touch /var/lib/mongodb/.keep \ + && chown -R mongod:mongod /var/lib/mongodb \ + && chmod ug+rx /bin/mongo_* -FROM mongo:latest -MAINTAINER startx dev@startx.fr +VOLUME ["/var/lib/mongodb"] +USER mongod +EXPOSE 27017 +#CMD ["/usr/bin/mongod", "--config", "/etc/mongodb.conf"] +CMD ["/bin/mongo_run.sh"] +ONBUILD CMD ["/bin/mongo_run.sh"] \ No newline at end of file -- cgit v1.2.3