提交 a2c2f6b0 authored 作者: Tyler_Cox's avatar Tyler_Cox

Adds retries to Mongo Seeding

Removes configurable startup sleep

Closes #6.
Signed-off-by: 's avatarTyler_Cox <tyler_cox@dell.com>
上级 33cebba4
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册