Authored by qinchao

docker发布

@@ -15,11 +15,12 @@ public class Platform { @@ -15,11 +15,12 @@ public class Platform {
15 15
16 public static final String NODE = "NODE"; 16 public static final String NODE = "NODE";
17 17
18 - 18 + public static final String DOCKER = "DOCKER";
19 static { 19 static {
20 list.add("JAVA"); 20 list.add("JAVA");
21 list.add("PHP"); 21 list.add("PHP");
22 list.add("NODE"); 22 list.add("NODE");
  23 + list.add("DOCKER");
23 } 24 }
24 25
25 public static List<String> getPlatforms(){ 26 public static List<String> getPlatforms(){
@@ -8,7 +8,7 @@ public class ProjectOnline { @@ -8,7 +8,7 @@ public class ProjectOnline {
8 private static List<Project> JAVA_LIST = new ArrayList<Project>(); 8 private static List<Project> JAVA_LIST = new ArrayList<Project>();
9 private static List<Project> PHP_LIST = new ArrayList<Project>(); 9 private static List<Project> PHP_LIST = new ArrayList<Project>();
10 private static List<Project> NODE_LIST = new ArrayList<Project>(); 10 private static List<Project> NODE_LIST = new ArrayList<Project>();
11 - 11 + private static List<Project> DOCKER_LIST = new ArrayList<Project>();
12 12
13 static{ 13 static{
14 JAVA_LIST.add(new Project("1","yoho-sns","125","yoho30")); 14 JAVA_LIST.add(new Project("1","yoho-sns","125","yoho30"));
@@ -83,6 +83,9 @@ public class ProjectOnline { @@ -83,6 +83,9 @@ public class ProjectOnline {
83 NODE_LIST.add(new Project("","yohobuy-portal-fe2","","")); 83 NODE_LIST.add(new Project("","yohobuy-portal-fe2","",""));
84 NODE_LIST.add(new Project("","yohobuy-shop","","")); 84 NODE_LIST.add(new Project("","yohobuy-shop","",""));
85 NODE_LIST.add(new Project("","yoho-shop-manage","","")); 85 NODE_LIST.add(new Project("","yoho-shop-manage","",""));
  86 +
  87 +
  88 + DOCKER_LIST.add(new Project("","yohoblk-wap","",""));
86 } 89 }
87 90
88 91
@@ -90,6 +93,10 @@ public class ProjectOnline { @@ -90,6 +93,10 @@ public class ProjectOnline {
90 return JAVA_LIST; 93 return JAVA_LIST;
91 } 94 }
92 95
  96 + public static List<Project> getDockerList() {
  97 + return DOCKER_LIST;
  98 + }
  99 +
93 public static List<Project> getPhpList() { 100 public static List<Project> getPhpList() {
94 return PHP_LIST; 101 return PHP_LIST;
95 } 102 }
@@ -105,6 +105,8 @@ public class WorkSystemCtrl { @@ -105,6 +105,8 @@ public class WorkSystemCtrl {
105 } else if (Platform.NODE.equals(platform)) { 105 } else if (Platform.NODE.equals(platform)) {
106 String result = httpRestClient.get("http://172.31.16.167:8883/node/getProjects", String.class, null); 106 String result = httpRestClient.get("http://172.31.16.167:8883/node/getProjects", String.class, null);
107 return JSON.parseObject(result,List.class); 107 return JSON.parseObject(result,List.class);
  108 + }else if (Platform.DOCKER.equals(platform)) {
  109 + return ProjectOnline.getDockerList();
108 } 110 }
109 return null; 111 return null;
110 } 112 }