提交 cdc7c7da authored 作者: Federico Claramonte's avatar Federico Claramonte

Run init_mongo.js every time the docker is started

Signed-off-by: 's avatarFederico Claramonte <fede.claramonte@caviumnetworks.com>
上级 a2659ece
......@@ -20,6 +20,9 @@ MAINTAINER Jim White <james_white2@dell.com>
#copy initialization script for later initialization
COPY *.js /edgex/mongo/config/
COPY launch-edgex-mongo.sh /edgex/mongo/config/
#expose Mongodb's port
EXPOSE 27017
CMD /edgex/mongo/config/launch-edgex-mongo.sh
#!/bin/sh
set -e
mongod --smallfiles &
sleep 10
mongo /edgex/mongo/config/init_mongo.js
wait
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册