Authored by jimi.ji

docker qcloud deploy

@@ -3,7 +3,7 @@ @@ -3,7 +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/Jenkinsfile" afterPath="$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile" /> 6 + <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py" afterPath="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py" />
7 </list> 7 </list>
8 <ignored path="$PROJECT_DIR$/out/" /> 8 <ignored path="$PROJECT_DIR$/out/" />
9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 9 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -29,21 +29,21 @@ @@ -29,21 +29,21 @@
29 </provider> 29 </provider>
30 </entry> 30 </entry>
31 </file> 31 </file>
32 - <file leaf-file-name="Jenkinsfile" pinned="false" current-in-tab="true"> 32 + <file leaf-file-name="Jenkinsfile" pinned="false" current-in-tab="false">
33 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile"> 33 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile">
34 <provider selected="true" editor-type-id="text-editor"> 34 <provider selected="true" editor-type-id="text-editor">
35 - <state relative-caret-position="257">  
36 - <caret line="50" column="17" lean-forward="true" selection-start-line="50" selection-start-column="17" selection-end-line="50" selection-end-column="17" /> 35 + <state relative-caret-position="14">
  36 + <caret line="23" column="50" lean-forward="false" selection-start-line="23" selection-start-column="50" selection-end-line="23" selection-end-column="50" />
37 <folding /> 37 <folding />
38 </state> 38 </state>
39 </provider> 39 </provider>
40 </entry> 40 </entry>
41 </file> 41 </file>
42 - <file leaf-file-name="qcloudDeploy.py" pinned="false" current-in-tab="false"> 42 + <file leaf-file-name="qcloudDeploy.py" pinned="false" current-in-tab="true">
43 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py"> 43 <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py">
44 <provider selected="true" editor-type-id="text-editor"> 44 <provider selected="true" editor-type-id="text-editor">
45 - <state relative-caret-position="-1863">  
46 - <caret line="6" column="13" lean-forward="true" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" /> 45 + <state relative-caret-position="284">
  46 + <caret line="103" column="51" lean-forward="false" selection-start-line="103" selection-start-column="0" selection-end-line="103" selection-end-column="51" />
47 <folding /> 47 <folding />
48 </state> 48 </state>
49 </provider> 49 </provider>
@@ -100,8 +100,8 @@ @@ -100,8 +100,8 @@
100 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/aws/yoho-ultrain-block-api.json" /> 100 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/aws/yoho-ultrain-block-api.json" />
101 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/aws/awsdeploy.sh" /> 101 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/aws/awsdeploy.sh" />
102 <option value="$PROJECT_DIR$/readme.md" /> 102 <option value="$PROJECT_DIR$/readme.md" />
103 - <option value="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py" />  
104 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile" /> 103 <option value="$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile" />
  104 + <option value="$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py" />
105 </list> 105 </list>
106 </option> 106 </option>
107 </component> 107 </component>
@@ -600,12 +600,12 @@ @@ -600,12 +600,12 @@
600 <workItem from="1545905663805" duration="1370000" /> 600 <workItem from="1545905663805" duration="1370000" />
601 <workItem from="1545965888175" duration="20585000" /> 601 <workItem from="1545965888175" duration="20585000" />
602 <workItem from="1546047561789" duration="16674000" /> 602 <workItem from="1546047561789" duration="16674000" />
603 - <workItem from="1546394046618" duration="4527000" /> 603 + <workItem from="1546394046618" duration="5097000" />
604 </task> 604 </task>
605 <servers /> 605 <servers />
606 </component> 606 </component>
607 <component name="TimeTrackingManager"> 607 <component name="TimeTrackingManager">
608 - <option name="totallyTimeSpent" value="54902000" /> 608 + <option name="totallyTimeSpent" value="55472000" />
609 </component> 609 </component>
610 <component name="ToolWindowManager"> 610 <component name="ToolWindowManager">
611 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" /> 611 <frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
@@ -622,7 +622,7 @@ @@ -622,7 +622,7 @@
622 <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" /> 622 <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" />
623 <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" /> 623 <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" />
624 <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" /> 624 <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" />
625 - <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.43606558" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 625 + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.43606558" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
626 <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" /> 626 <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" />
627 <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" /> 627 <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" />
628 <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" /> 628 <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" />
@@ -665,7 +665,7 @@ @@ -665,7 +665,7 @@
665 <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" /> 665 <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" />
666 <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" /> 666 <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" />
667 <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.43606558" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> 667 <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.43606558" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
668 - <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="6" side_tool="false" content_ui="combo" /> 668 + <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" />
669 <window_info id="Find" 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="4" side_tool="false" content_ui="tabs" /> 669 <window_info id="Find" 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="4" side_tool="false" content_ui="tabs" />
670 <window_info id="Theme Preview" 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="5" side_tool="false" content_ui="tabs" /> 670 <window_info id="Theme Preview" 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="5" side_tool="false" content_ui="tabs" />
671 <window_info id="Favorites" 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="4" side_tool="true" content_ui="tabs" /> 671 <window_info id="Favorites" 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="4" side_tool="true" content_ui="tabs" />
@@ -924,18 +924,18 @@ @@ -924,18 +924,18 @@
924 </state> 924 </state>
925 </provider> 925 </provider>
926 </entry> 926 </entry>
927 - <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py"> 927 + <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile">
928 <provider selected="true" editor-type-id="text-editor"> 928 <provider selected="true" editor-type-id="text-editor">
929 - <state relative-caret-position="-1863">  
930 - <caret line="6" column="13" lean-forward="true" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" /> 929 + <state relative-caret-position="14">
  930 + <caret line="23" column="50" lean-forward="false" selection-start-line="23" selection-start-column="50" selection-end-line="23" selection-end-column="50" />
931 <folding /> 931 <folding />
932 </state> 932 </state>
933 </provider> 933 </provider>
934 </entry> 934 </entry>
935 - <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/Jenkinsfile"> 935 + <entry file="file://$PROJECT_DIR$/Docker-Image-Deplopy/qcloud/qcloudDeploy.py">
936 <provider selected="true" editor-type-id="text-editor"> 936 <provider selected="true" editor-type-id="text-editor">
937 - <state relative-caret-position="257">  
938 - <caret line="50" column="17" lean-forward="true" selection-start-line="50" selection-start-column="17" selection-end-line="50" selection-end-column="17" /> 937 + <state relative-caret-position="284">
  938 + <caret line="103" column="51" lean-forward="false" selection-start-line="103" selection-start-column="0" selection-end-line="103" selection-end-column="51" />
939 <folding /> 939 <folding />
940 </state> 940 </state>
941 </provider> 941 </provider>
@@ -84,7 +84,7 @@ def main(clusterid, servicename, containername, imageversion): @@ -84,7 +84,7 @@ def main(clusterid, servicename, containername, imageversion):
84 count = 0 84 count = 0
85 time.sleep(10) 85 time.sleep(10)
86 while count <= 60: 86 while count <= 60:
87 - if count == 2: 87 + if count == 60:
88 sys.exit(1) 88 sys.exit(1)
89 count = count + 1 89 count = count + 1
90 container_status = check_service_status(clusterid, servicename) 90 container_status = check_service_status(clusterid, servicename)