提交 03a2e40f authored 作者: Federico Claramonte's avatar Federico Claramonte

Adding an environment variable for the sleeping time before running init_mongo.js

Signed-off-by: 's avatarFederico Claramonte <fede.claramonte@caviumnetworks.com>
上级 38b92dfd
......@@ -18,6 +18,8 @@
FROM mongo:latest
MAINTAINER Jim White <james_white2@dell.com>
ENV SLEEP_TIME_BEFORE_CONFIG=10
#copy initialization script for later initialization
COPY *.js /edgex/mongo/config/
COPY launch-edgex-mongo.sh /edgex/mongo/config/
......
......@@ -19,7 +19,8 @@ set -e
mongod --smallfiles &
sleep 10
echo "Waiting for $SLEEP_TIME_BEFORE_CONFIG seconds before configuring mongo"
sleep $SLEEP_TIME_BEFORE_CONFIG
mongo /edgex/mongo/config/init_mongo.js
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册