From a7f649b8f1f56a999073550d1b91b5d8d1cd7d81 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 6 Dec 2014 02:51:42 +0100 Subject: adding functionnal mongodb server --- Services/mongo/Dockerfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'Services/mongo/Dockerfile') diff --git a/Services/mongo/Dockerfile b/Services/mongo/Dockerfile index aee3456..0199e76 100644 --- a/Services/mongo/Dockerfile +++ b/Services/mongo/Dockerfile @@ -1,7 +1,6 @@ FROM startx/fedora MAINTAINER Christophe LARUE -COPY mongo_run.sh /bin/ RUN yum -y install \ mongodb \ mongodb-server \ @@ -11,15 +10,15 @@ RUN yum -y install \ 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_* - -VOLUME ["/var/lib/mongodb"] -USER mongod - + && touch /var/lib/mongodb/.keep +COPY sx/* /sx/ +COPY mongodb.conf /etc/mongodb.conf +RUN chmod ug+rx /sx/mongod* \ + && chown -R mongodb:mongodb /sx/mongod* /var/lib/mongodb /var/log/mongodb 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 +VOLUME ["/var/lib/mongodb", "/var/log/mongodb"] + +USER mongodb +#ENDPOINT ["/sx/mongod_run.sh"] +CMD ["/sx/mongod_run.sh"] \ No newline at end of file -- cgit v1.2.3