|
|
package com.ui.project;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.HashSet;
|
|
|
import java.util.Map;
|
|
|
import java.util.Set;
|
|
|
import java.util.*;
|
|
|
|
|
|
public class ProjectEnvironment {
|
|
|
|
|
|
private static String[] dockerEnvironments = {"yoho-online","yoho-gray"};
|
|
|
private static String[] dockerProjectTypes = {"node","java","php","ops","other"};
|
|
|
//private static String[] dockerProjectTypes = {"node","java","php","ops","other"};
|
|
|
private static Map<String,String> map = new HashMap<>();
|
|
|
private static Map<String,String> dockerProjectTypeMap=new LinkedHashMap<>();
|
|
|
|
|
|
static{
|
|
|
map.put("aws", "http://172.31.16.167:8883/web/");
|
|
|
map.put("qcloud","http://172.31.16.167:8883/web/");
|
|
|
map.put("qcloud_gray","http://172.31.16.167:8883/web/");
|
|
|
map.put("aws_gray","http://172.31.16.167:8883/web/");
|
|
|
|
|
|
dockerProjectTypeMap.put("web","web");
|
|
|
dockerProjectTypeMap.put("media","media");
|
|
|
dockerProjectTypeMap.put("ci","核心系统ci");
|
|
|
dockerProjectTypeMap.put("ops","ops");
|
|
|
}
|
|
|
|
|
|
public static Set<String> getEnviroments(){
|
...
|
...
|
@@ -35,8 +38,8 @@ public class ProjectEnvironment { |
|
|
return dockerEnvironments;
|
|
|
}
|
|
|
|
|
|
public static String[] getDockerProjectTypes(){
|
|
|
return dockerProjectTypes;
|
|
|
public static Map<String,String> getDockerProjectTypeMap(){
|
|
|
return dockerProjectTypeMap;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|