diff options
Diffstat (limited to 'Services/mongo')
-rw-r--r-- | Services/mongo/Dockerfile | 23 |
1 files changed, 21 insertions, 2 deletions
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 <dev@startx.fr> +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 |