refactor: dap-tool-* 모듈을 dap-was-* 이름으로 전면 개편 및 컨테이너명/파이프라인 연동
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 1m57s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 1m57s
This commit is contained in:
@@ -59,7 +59,7 @@ jobs:
|
|||||||
# 4. 마운트된 /app 디렉토리로 이동하여 호스트의 도커 컴포즈 제어!
|
# 4. 마운트된 /app 디렉토리로 이동하여 호스트의 도커 컴포즈 제어!
|
||||||
cd /app
|
cd /app
|
||||||
docker system prune -f
|
docker system prune -f
|
||||||
ACTIVE_PROFILE=dev docker compose up -d --build --remove-orphans gateway redis mci-mock dozzle tool-sms tool-oth
|
ACTIVE_PROFILE=dev docker compose up -d --build --remove-orphans gateway redis mci-mock dozzle was-sms was-oth
|
||||||
|
|
||||||
# 5. 배포 후 대롱대롱 매달려 있는 가비지 이미지 자동 소거 청소!
|
# 5. 배포 후 대롱대롱 매달려 있는 가비지 이미지 자동 소거 청소!
|
||||||
docker image prune -f
|
docker image prune -f
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def toolCoreProject = project(':dap-tool-core')
|
def toolCoreProject = project(':dap-was-lib')
|
||||||
|
|
||||||
tasks.register('validateMcpToolNames', JavaExec) {
|
tasks.register('validateMcpToolNames', JavaExec) {
|
||||||
group = 'verification'
|
group = 'verification'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':dap-tool-core')
|
implementation project(':dap-was-lib')
|
||||||
|
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class ScaffoldingController {
|
|||||||
@PostMapping("/pod")
|
@PostMapping("/pod")
|
||||||
public String scaffoldPod(@RequestBody Map<String, String> req) {
|
public String scaffoldPod(@RequestBody Map<String, String> req) {
|
||||||
try {
|
try {
|
||||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-oth");
|
String moduleName = req.getOrDefault("moduleName", "dap-was-oth");
|
||||||
if (!moduleName.startsWith("dap-tool-")) moduleName = "dap-tool-" + moduleName;
|
if (!moduleName.startsWith("dap-tool-")) moduleName = "dap-tool-" + moduleName;
|
||||||
String port = req.getOrDefault("port", "8085");
|
String port = req.getOrDefault("port", "8085");
|
||||||
String shortName = moduleName.replace("dap-tool-", "").replace("-", "");
|
String shortName = moduleName.replace("dap-tool-", "").replace("-", "");
|
||||||
@@ -57,7 +57,7 @@ public class ScaffoldingController {
|
|||||||
String description = req.get("description");
|
String description = req.get("description");
|
||||||
String group = req.getOrDefault("categoryKey", req.getOrDefault("group", "COMMON"));
|
String group = req.getOrDefault("categoryKey", req.getOrDefault("group", "COMMON"));
|
||||||
String routingType = req.getOrDefault("routingType", "HTTP");
|
String routingType = req.getOrDefault("routingType", "HTTP");
|
||||||
String moduleName = req.getOrDefault("moduleName", "dap-tool-oth");
|
String moduleName = req.getOrDefault("moduleName", "dap-was-oth");
|
||||||
String author = req.get("author");
|
String author = req.get("author");
|
||||||
if (author == null || author.trim().isEmpty()) author = System.getProperty("user.name");
|
if (author == null || author.trim().isEmpty()) author = System.getProperty("user.name");
|
||||||
String date = req.get("date");
|
String date = req.get("date");
|
||||||
@@ -94,15 +94,15 @@ public class ScaffoldingController {
|
|||||||
if (sourceDir == null) sourceDir = System.getProperty("user.dir");
|
if (sourceDir == null) sourceDir = System.getProperty("user.dir");
|
||||||
|
|
||||||
File dir = new File(sourceDir);
|
File dir = new File(sourceDir);
|
||||||
File[] files = dir.listFiles(f -> f.isDirectory() && f.getName().startsWith("dap-tool-") && !f.getName().equals("dap-tool-core"));
|
File[] files = dir.listFiles(f -> f.isDirectory() && f.getName().startsWith("dap-tool-") && !f.getName().equals("dap-was-lib"));
|
||||||
|
|
||||||
if (files == null || files.length == 0) {
|
if (files == null || files.length == 0) {
|
||||||
return List.of("dap-tool-oth", "dap-tool-hr", "dap-tool-sms");
|
return List.of("dap-was-oth", "dap-tool-hr", "dap-was-sms");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Arrays.stream(files).map(File::getName).sorted().collect(Collectors.toList());
|
return Arrays.stream(files).map(File::getName).sorted().collect(Collectors.toList());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return List.of("dap-tool-oth", "dap-tool-hr", "dap-tool-sms");
|
return List.of("dap-was-oth", "dap-tool-hr", "dap-was-sms");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
mcp:
|
mcp:
|
||||||
gateway:
|
gateway:
|
||||||
fallback:
|
fallback:
|
||||||
default-url: http://tool-oth:8084
|
default-url: http://was-oth:8084
|
||||||
routes:
|
routes:
|
||||||
sms: http://tool-sms:8082
|
sms: http://was-sms:8082
|
||||||
hr: http://tool-oth:8084
|
hr: http://was-oth:8084
|
||||||
|
|
||||||
# --- 신한라이프 EAI/MCI 연계 IP 정보 (개발 환경) ---
|
# --- 신한라이프 EAI/MCI 연계 IP 정보 (개발 환경) ---
|
||||||
shinhan:
|
shinhan:
|
||||||
|
|||||||
@@ -26,10 +26,10 @@ server:
|
|||||||
mcp:
|
mcp:
|
||||||
gateway:
|
gateway:
|
||||||
fallback:
|
fallback:
|
||||||
default-url: http://tool-oth:8084
|
default-url: http://was-oth:8084
|
||||||
routes:
|
routes:
|
||||||
sms: http://tool-sms:8082
|
sms: http://was-sms:8082
|
||||||
hr: http://tool-oth:8084
|
hr: http://was-oth:8084
|
||||||
agent-claims-required: false
|
agent-claims-required: false
|
||||||
trusted-claims-required: false
|
trusted-claims-required: false
|
||||||
write-approval-required: false
|
write-approval-required: false
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user