summaryrefslogtreecommitdiffstats
path: root/Services/mongo/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-29 00:44:42 +0100
committerstartxfr <clarue@startx.fr>2015-11-29 00:44:42 +0100
commit78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df (patch)
tree13e05e8d8217a48a0d4decf8564defee11cf35ba /Services/mongo/Dockerfile
parenta490cfe364a242b1e9993225758ea6e61369e363 (diff)
downloadphpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.gz
phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.bz2
phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.tar.xz
phpmyadmin-78d1d5017e8acbc8b4bb7f0f567d10f0e47a75df.zip
rewrite mongo and small updates in others
Diffstat (limited to 'Services/mongo/Dockerfile')
-rw-r--r--Services/mongo/Dockerfile38
1 files changed, 18 insertions, 20 deletions
diff --git a/Services/mongo/Dockerfile b/Services/mongo/Dockerfile
index 85261c8..f240622 100644
--- a/Services/mongo/Dockerfile
+++ b/Services/mongo/Dockerfile
@@ -1,24 +1,22 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-RUN dnf -y install \
- mongodb \
- mongodb-server \
- libmongo-client \
- rsyslog-mongodb \
- mongodb-mms-backup-agent \
- mongodb-mms-monitoring-agent \
- && dnf clean all \
- && mkdir -p /var/lib/mongodb \
- && 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
+USER root
+RUN dnf -y install mongodb mongodb-server libmongo-client rsyslog-mongodb && \
+ dnf clean all
+ENV MONGOCONF=/etc/mongodb.conf \
+ STARTUPLOG=/data/logs/mongodb/startup.log \
+ LOG_PATH=/data/logs/mongodb \
+ DATA_PATH=/data/mongodb
+COPY mongodb.conf $MONGOCONF
+COPY *.sh /bin/
+RUN chmod 775 /bin/run.sh && \
+ chmod ug+r $MONGOCONF && \
+ mkdir -p $DATA_PATH && \
+ mkdir -p $LOG_PATH && \
+ touch $STARTUPLOG
+RUN chown -R mongodb:mongodb $DATA_PATH $LOG_PATH
-EXPOSE 27017
-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
+EXPOSE 27017 28017
+VOLUME [$DATA_PATH,$LOG_PATH]
+CMD ["/bin/run.sh"] \ No newline at end of file