Skip to content

fix: 헬스체크 경로 수정 및 이미지 정리 범위 한정#60

Merged
Woomin-Wang merged 1 commit intomainfrom
fix/docker-healthcheck-and-image-prune
Apr 24, 2026
Merged

fix: 헬스체크 경로 수정 및 이미지 정리 범위 한정#60
Woomin-Wang merged 1 commit intomainfrom
fix/docker-healthcheck-and-image-prune

Conversation

@Woomin-Wang
Copy link
Copy Markdown
Contributor

📝 작업 내용 (Description)

  • Dockerfile HEALTHCHECK 경로를 /health/actuator/health로 수정
  • CD 워크플로우 이미지 정리 시 backend-java 이미지만 삭제하도록 reference 필터 추가

🔄 변경 유형 (Type of Change)

  • ✨ 새로운 기능 (feat)
  • 🐛 버그 수정 (fix)
  • 📝 문서 수정 (docs)
  • 💄 스타일 (style)
  • ♻️ 리팩토링 (refactor)
  • ✅ 테스트 (test)
  • 🔧 기타 (chore)

✅ 체크리스트 (Checklist)

  • 코드가 정상적으로 동작하는지 확인했습니다
  • 기존 테스트가 통과합니다
  • 필요한 경우 새로운 테스트를 추가했습니다

💬 추가 코멘트 (Additional Comments)

기존 /health 경로는 Spring Boot Actuator 기본 경로와 달라 헬스체크가 항상 실패하는 상태였습니다.
이미지 정리 범위를 한정하지 않으면 TS 팀 이미지까지 삭제될 수 있어 reference 필터로 대상을 명시했습니다.

@Woomin-Wang Woomin-Wang force-pushed the fix/docker-healthcheck-and-image-prune branch from 183db93 to 1c44095 Compare April 24, 2026 14:20
@Woomin-Wang Woomin-Wang merged commit 62db6df into main Apr 24, 2026
4 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Dockerfile health check endpoint to use the Spring Boot Actuator path. Feedback was provided regarding the health check interval, which is currently set to 24 hours; this should be reduced to a more standard duration like 30 seconds to ensure timely failure detection.

Comment thread Dockerfile
# 컨테이너 레벨 헬스체크 (Docker daemon의 status 표시용)
HEALTHCHECK --interval=24h --timeout=10s --start-period=40s --retries=3 \
CMD curl -sf http://localhost:7300/health || exit 1
CMD curl -sf http://localhost:7300/actuator/health || exit 1
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

헬스체크 경로를 /actuator/health로 수정한 것은 적절합니다. 다만, 현재 HEALTHCHECK 설정의 interval24h(24시간)로 설정되어 있습니다(36번 라인). 이로 인해 컨테이너 시작 후 첫 번째 헬스체크가 24시간 뒤에나 수행되며, 장애 발생 시 감지 및 복구에 매우 긴 시간이 소요됩니다. 일반적으로 interval30s~1m 정도로 설정하는 것이 권장됩니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant