Skip to content

Commit

Permalink
reduced wait time for docker image pull
Browse files Browse the repository at this point in the history
  • Loading branch information
sanju-a committed Nov 16, 2015
1 parent 819c4a1 commit c25223f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cluster/manifests.hash
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ provision_gateway.sh md5=898befb49ee153ea015eb5804f678052
provision_kubelet_plugin.sh md5=f816d53b0b1da563360b0a0d0f790eb1
provision_master.sh md5=166174d5699c6e6294bb04b4b6ac47ba
provision_minion.sh md5=f3c5e20e5b97178ba3fb6a87b1857f71
provision_vrouter_kernel.sh md5=a28f1267757342b6349a9cf6b34ee502
provision_vrouter_kernel.sh md5=a22845d65af64084751152d26a2512b4
rabbitmq.manifest md5=fe26b2f66c2adfd94c85c1971be50267
redis.manifest md5=d5489945201a847f8bfeabdfccdc68ce
zookeeper.manifest md5=c665836b3d5fe7b535d2c91a5efbb824
8 changes: 4 additions & 4 deletions cluster/provision_vrouter_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function launch_docker()
os=$(lsb_release -d | awk '{print tolower($2)}')
oscode=$(lsb_release -c | awk '{print tolower($2)}')
rel=$(lsb_release -r | awk '{print $2}')
#if [ "$os" == "debian" ] && [ "$rel" == "7.9" ]; then
# rel="wheezy-backports"
#fi
if [ "$os" == "debian" ] && [ "$rel" == "7.9" ]; then
rel="wheezy-backports"
fi
elif [ "$OS_TYPE" == "REDHAT" ]; then
os=$(cat /etc/redhatrelease | awk '{print tolower($1)}')
rel=$(cat /etc/redhatrelease | awk '{print $3}')
Expand Down Expand Up @@ -114,7 +114,7 @@ function docker_pull()
fi
sleep 2
((i++))
if [ $i -eq 12 ]; then
if [ $i -eq 5 ]; then
if [ -d "/proc/${pullpid}" ]; then
pkill -TERM -P $pullpid
cnt=$(ps -ef|grep "docker pull" | grep $img | wc -l)
Expand Down

0 comments on commit c25223f

Please sign in to comment.