未验证 提交 72dd9410 authored 作者: Jim White's avatar Jim White 提交者: GitHub

Merge pull request #7 from edgexfoundry/Mongo-Retry

Adds retries to Mongo Seeding
......@@ -18,8 +18,6 @@
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/
......
......@@ -18,8 +18,6 @@
FROM arm64v8/ubuntu:zesty
MAINTAINER Federico Claramonte <fede.claramonte@caviumnetworks.com>
ENV SLEEP_TIME_BEFORE_CONFIG=10
RUN \
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 && \
#echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d \
......
......@@ -19,10 +19,10 @@ set -e
mongod --smallfiles &
echo "Waiting for $SLEEP_TIME_BEFORE_CONFIG seconds before configuring mongo"
sleep $SLEEP_TIME_BEFORE_CONFIG
mongo /edgex/mongo/config/init_mongo.js
while true; do
mongo /edgex/mongo/config/init_mongo.js && break
sleep 5
done
wait
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册