Authored by jimi.ji

docker

@@ -52,8 +52,8 @@ @@ -52,8 +52,8 @@
52 <file leaf-file-name="qcloud.sh" pinned="false" current-in-tab="true"> 52 <file leaf-file-name="qcloud.sh" pinned="false" current-in-tab="true">
53 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh"> 53 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
54 <provider selected="true" editor-type-id="text-editor"> 54 <provider selected="true" editor-type-id="text-editor">
55 - <state relative-caret-position="164">  
56 - <caret line="40" column="95" lean-forward="false" selection-start-line="40" selection-start-column="29" selection-end-line="40" selection-end-column="95" /> 55 + <state relative-caret-position="83">
  56 + <caret line="40" column="84" lean-forward="false" selection-start-line="40" selection-start-column="84" selection-end-line="40" selection-end-column="84" />
57 <folding /> 57 <folding />
58 </state> 58 </state>
59 </provider> 59 </provider>
@@ -609,12 +609,12 @@ @@ -609,12 +609,12 @@
609 <updated>1545890692513</updated> 609 <updated>1545890692513</updated>
610 <workItem from="1545890694011" duration="11746000" /> 610 <workItem from="1545890694011" duration="11746000" />
611 <workItem from="1545905663805" duration="1370000" /> 611 <workItem from="1545905663805" duration="1370000" />
612 - <workItem from="1545965888175" duration="11761000" /> 612 + <workItem from="1545965888175" duration="11972000" />
613 </task> 613 </task>
614 <servers /> 614 <servers />
615 </component> 615 </component>
616 <component name="TimeTrackingManager"> 616 <component name="TimeTrackingManager">
617 - <option name="totallyTimeSpent" value="24877000" /> 617 + <option name="totallyTimeSpent" value="25088000" />
618 </component> 618 </component>
619 <component name="ToolWindowManager"> 619 <component name="ToolWindowManager">
620 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" /> 620 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
@@ -797,8 +797,8 @@ @@ -797,8 +797,8 @@
797 </entry> 797 </entry>
798 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh"> 798 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
799 <provider selected="true" editor-type-id="text-editor"> 799 <provider selected="true" editor-type-id="text-editor">
800 - <state relative-caret-position="164">  
801 - <caret line="40" column="95" lean-forward="false" selection-start-line="40" selection-start-column="29" selection-end-line="40" selection-end-column="95" /> 800 + <state relative-caret-position="83">
  801 + <caret line="40" column="84" lean-forward="false" selection-start-line="40" selection-start-column="84" selection-end-line="40" selection-end-column="84" />
802 <folding /> 802 <folding />
803 </state> 803 </state>
804 </provider> 804 </provider>
@@ -38,9 +38,9 @@ do @@ -38,9 +38,9 @@ do
38 echo "print the cluster info " 38 echo "print the cluster info "
39 /usr/local/bin/kubectl get pods |grep $serviceName 39 /usr/local/bin/kubectl get pods |grep $serviceName
40 newrunning=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$3!="Running"' |wc -l) 40 newrunning=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$3!="Running"' |wc -l)
41 - newredy=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$2!="1/1" or $2!="2/2"' |wc -l) 41 + newredy=$(/usr/local/bin/kubectl get pods |grep "$serviceName" |awk '$2!="1/1" -o $2!="2/2"' |wc -l)
42 echo "newrunning is $newrunning ,newredy is $newredy" 42 echo "newrunning is $newrunning ,newredy is $newredy"
43 - if [ "$newrunning" -eq 0 -o "$newredy" -eq 0 ];then 43 + if [ "$newrunning" -eq 0 -a "$newredy" -eq 0 ];then
44 echo "end with the cluster check the publish is ok" 44 echo "end with the cluster check the publish is ok"
45 break; 45 break;
46 fi 46 fi