diff options
author | startxfr <clarue@startx.fr> | 2014-12-06 02:51:42 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-06 02:51:42 +0100 |
commit | a7f649b8f1f56a999073550d1b91b5d8d1cd7d81 (patch) | |
tree | c7739a5c22615c3d3ca5bb59821a598e40460f02 /Services/mongo/Dockerfile | |
parent | 076db03abf9ac12a057b784a3e0999180ca53543 (diff) | |
download | phpmyadmin-a7f649b8f1f56a999073550d1b91b5d8d1cd7d81.tar.gz phpmyadmin-a7f649b8f1f56a999073550d1b91b5d8d1cd7d81.tar.bz2 phpmyadmin-a7f649b8f1f56a999073550d1b91b5d8d1cd7d81.tar.xz phpmyadmin-a7f649b8f1f56a999073550d1b91b5d8d1cd7d81.zip |
adding functionnal mongodb server
Diffstat (limited to 'Services/mongo/Dockerfile')
-rw-r--r-- | Services/mongo/Dockerfile | 21 |
1 files changed, 10 insertions, 11 deletions
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 <dev@startx.fr> -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 |