Authored by jimi.ji

docker

@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
3 <component name="ChangeListManager"> 3 <component name="ChangeListManager">
4 <list default="true" id="73f1c4c4-a4e0-4e72-aa1b-7be1b346abcf" name="Default" comment=""> 4 <list default="true" id="73f1c4c4-a4e0-4e72-aa1b-7be1b346abcf" name="Default" comment="">
5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" /> 5 <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
  6 + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh" afterPath="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh" />
6 </list> 7 </list>
7 <ignored path="$PROJECT_DIR$/out/" /> 8 <ignored path="$PROJECT_DIR$/out/" />
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -51,8 +52,8 @@ @@ -51,8 +52,8 @@
51 <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">
52 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh"> 53 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
53 <provider selected="true" editor-type-id="text-editor"> 54 <provider selected="true" editor-type-id="text-editor">
54 - <state relative-caret-position="164">  
55 - <caret line="40" column="76" lean-forward="true" selection-start-line="40" selection-start-column="76" selection-end-line="40" selection-end-column="76" /> 55 + <state relative-caret-position="243">
  56 + <caret line="9" column="21" lean-forward="true" selection-start-line="9" selection-start-column="21" selection-end-line="9" selection-end-column="21" />
56 <folding /> 57 <folding />
57 </state> 58 </state>
58 </provider> 59 </provider>
@@ -608,12 +609,12 @@ @@ -608,12 +609,12 @@
608 <updated>1545890692513</updated> 609 <updated>1545890692513</updated>
609 <workItem from="1545890694011" duration="11746000" /> 610 <workItem from="1545890694011" duration="11746000" />
610 <workItem from="1545905663805" duration="1370000" /> 611 <workItem from="1545905663805" duration="1370000" />
611 - <workItem from="1545965888175" duration="12206000" /> 612 + <workItem from="1545965888175" duration="13575000" />
612 </task> 613 </task>
613 <servers /> 614 <servers />
614 </component> 615 </component>
615 <component name="TimeTrackingManager"> 616 <component name="TimeTrackingManager">
616 - <option name="totallyTimeSpent" value="25322000" /> 617 + <option name="totallyTimeSpent" value="26691000" />
617 </component> 618 </component>
618 <component name="ToolWindowManager"> 619 <component name="ToolWindowManager">
619 <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" />
@@ -630,7 +631,7 @@ @@ -630,7 +631,7 @@
630 <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> 631 <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
631 <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> 632 <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
632 <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> 633 <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
633 - <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3295082" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 634 + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3295082" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
634 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> 635 <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
635 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> 636 <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
636 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="6" side_tool="false" content_ui="combo" /> 637 <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="6" side_tool="false" content_ui="combo" />
@@ -796,8 +797,8 @@ @@ -796,8 +797,8 @@
796 </entry> 797 </entry>
797 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh"> 798 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloud.sh">
798 <provider selected="true" editor-type-id="text-editor"> 799 <provider selected="true" editor-type-id="text-editor">
799 - <state relative-caret-position="164">  
800 - <caret line="40" column="76" lean-forward="true" selection-start-line="40" selection-start-column="76" selection-end-line="40" selection-end-column="76" /> 800 + <state relative-caret-position="243">
  801 + <caret line="9" column="21" lean-forward="true" selection-start-line="9" selection-start-column="21" selection-end-line="9" selection-end-column="21" />
801 <folding /> 802 <folding />
802 </state> 803 </state>
803 </provider> 804 </provider>
@@ -12,6 +12,12 @@ imageInfo="ccr.ccs.tencentyun.com/$4" @@ -12,6 +12,12 @@ imageInfo="ccr.ccs.tencentyun.com/$4"
12 12
13 ## 切换当前的工作空间 13 ## 切换当前的工作空间
14 /usr/local/bin/kubectl config use-context $clusterInfo 14 /usr/local/bin/kubectl config use-context $clusterInfo
  15 +## 确定切换成功
  16 +currentcontext=$(/usr/local/bin/kubectl config current-context)
  17 +if [ "$currentcontext" != "$clusterInfo" ];then
  18 + echo "change kubectl ca failure,please check result"
  19 + exit 1
  20 +fi
15 /usr/local/bin/kubectl get pods 21 /usr/local/bin/kubectl get pods
16 22
17 ## 更新镜像信息 23 ## 更新镜像信息
@@ -23,7 +29,7 @@ do @@ -23,7 +29,7 @@ do
23 let waitnum=waitnum+1 29 let waitnum=waitnum+1
24 echo "print the cluster info " 30 echo "print the cluster info "
25 /usr/local/bin/kubectl get pods |grep $serviceName 31 /usr/local/bin/kubectl get pods |grep $serviceName
26 -## sleep 5 32 + sleep 5
27 done 33 done
28 ## check service is done 34 ## check service is done
29 num=1 35 num=1
@@ -31,7 +37,7 @@ while [ $num -le 60 ] @@ -31,7 +37,7 @@ while [ $num -le 60 ]
31 do 37 do
32 echo "begin check the service is done ,the check number is :$num " 38 echo "begin check the service is done ,the check number is :$num "
33 if [ "$num" == 60 ];then 39 if [ "$num" == 60 ];then
34 - echo "over the check number ,the check number is :$num " 40 + echo "over 10 min the service is not down please check the service ,the check number is :$num "
35 exit 1 41 exit 1
36 fi 42 fi
37 let num=num+1 43 let num=num+1