diff options
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 |