HuggingFaceImageGenerator를 프로파일 기반으로 변경하여 빈 충돌 해결

- @Profile("huggingface") 추가로 기본 프로파일에서는 비활성화
- StableDiffusionImageGenerator를 기본 구현체로 사용
- content-service 배포 오류 해결
This commit is contained in:
cherry2250
2025-10-28 19:47:39 +09:00
parent 9305dfdb7f
commit b9514257b0
13 changed files with 273 additions and 1 deletions
+45 -1
View File
@@ -272,16 +272,60 @@ docker rmi content-service:latest
## 13. 빌드 결과
### 빌드 수행 이력
#### 최신 빌드 (2025-10-28)
**1단계: JAR 빌드**
```bash
./gradlew content-service:clean content-service:bootJar
```
빌드 결과:
```
BUILD SUCCESSFUL in 8s
9 actionable tasks: 6 executed, 3 up-to-date
```
**2단계: Docker 이미지 빌드**
```bash
docker build \
--platform linux/amd64 \
--build-arg BUILD_LIB_DIR="content-service/build/libs" \
--build-arg ARTIFACTORY_FILE="content-service.jar" \
-f deployment/container/Dockerfile-backend \
-t content-service:latest .
```
빌드 결과:
- ✅ Build stage 완료 (openjdk:23-oraclelinux8)
- ✅ Run stage 완료 (openjdk:23-slim)
- ✅ 이미지 생성 완료
**3단계: 이미지 확인**
```bash
docker images | grep content-service
```
확인 결과:
```
content-service latest ff73258c94cc 15 seconds ago 393MB
```
### 빌드 정보
- **서비스명**: content-service
- **JAR 파일**: content-service.jar
- **Docker 이미지**: content-service:latest
- **이미지 ID**: ff73258c94cc
- **이미지 크기**: 393MB
- **노출 포트**: 8084
### 빌드 일시
- **빌드 날짜**: 2025-10-27
- **최신 빌드**: 2025-10-28
- **이전 빌드**: 2025-10-27
### 환경
- **Base Image**: openjdk:23-slim
- **Platform**: linux/amd64
- **User**: k8s (non-root)
- **Java Version**: 23