Authored by qinchao

docker发布

... ... @@ -15,11 +15,12 @@ public class Platform {
public static final String NODE = "NODE";
public static final String DOCKER = "DOCKER";
static {
list.add("JAVA");
list.add("PHP");
list.add("NODE");
list.add("DOCKER");
}
public static List<String> getPlatforms(){
... ...
... ... @@ -8,7 +8,7 @@ public class ProjectOnline {
private static List<Project> JAVA_LIST = new ArrayList<Project>();
private static List<Project> PHP_LIST = new ArrayList<Project>();
private static List<Project> NODE_LIST = new ArrayList<Project>();
private static List<Project> DOCKER_LIST = new ArrayList<Project>();
static{
JAVA_LIST.add(new Project("1","yoho-sns","125","yoho30"));
... ... @@ -83,6 +83,9 @@ public class ProjectOnline {
NODE_LIST.add(new Project("","yohobuy-portal-fe2","",""));
NODE_LIST.add(new Project("","yohobuy-shop","",""));
NODE_LIST.add(new Project("","yoho-shop-manage","",""));
DOCKER_LIST.add(new Project("","yohoblk-wap","",""));
}
... ... @@ -90,6 +93,10 @@ public class ProjectOnline {
return JAVA_LIST;
}
public static List<Project> getDockerList() {
return DOCKER_LIST;
}
public static List<Project> getPhpList() {
return PHP_LIST;
}
... ...
... ... @@ -105,6 +105,8 @@ public class WorkSystemCtrl {
} else if (Platform.NODE.equals(platform)) {
String result = httpRestClient.get("http://172.31.16.167:8883/node/getProjects", String.class, null);
return JSON.parseObject(result,List.class);
}else if (Platform.DOCKER.equals(platform)) {
return ProjectOnline.getDockerList();
}
return null;
}
... ...