Skip to content

Commit b5dece4

Browse files
authored
Refactor/376 : 빌드시 MCP 스프링부트테스트로 타임아웃 발생 방지 (#383)
* refactor: 코드에서 listTools()를 초기화 및 타임아웃 시간 연장 * refactor:기존 MCP서비스 사용 및 앱 부팅시초기화 true설정 자동도구등록 설정 * chore: 버젼 명시 해제 * chore : 도커파일 테스트 시 빌드되는 거 수정
1 parent c362098 commit b5dece4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cs25-service/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ COPY cs25-entity cs25-entity/
1111
COPY cs25-common cs25-common/
1212

1313
# 테스트 생략하여 빌드 안정화
14-
RUN ./gradlew :cs25-service:bootJar --stacktrace --no-daemon
14+
# (빌드 시 MCP 비활성화 + gradlew 실행 권한 + 테스트 스킵)
15+
ENV SPRING_AI_MCP_CLIENT_ENABLED=false \
16+
SPRING_AI_MCP_CLIENT_INITIALIZED=false
17+
RUN chmod +x ./gradlew
18+
RUN ./gradlew :cs25-service:bootJar --stacktrace --no-daemon -x test
19+
1520
FROM eclipse-temurin:17-jre-jammy
1621

1722
# 메타 정보

0 commit comments

Comments
 (0)