[CHORE] Dockerfile에 JVM 옵션 적용 - #120
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 개요
docker-compose.yml에서

JAVA_OPTS를 통해 JVM 메모리 및 GC 옵션을 설정하고 있었으나, 기존 Dockerfile에서는 java 실행 시 해당 환경 변수를 참조하지 않아 docker-compose.yml을 수정한 뒤에./deploy.sh를 다시 실행해도 JVM 옵션이 실제 컨테이너 실행에 적용되지 않는 문제가 있었습니다.아래 사진처럼
JAVA_OPTS에 설정들을 추가하는 작업을 진행 중이었습니다.그래서 Dockerfile의
ENTRYPOINT를 수정하여, 컨테이너 실행 시점에 JAVA_OPTS가 JVM에 정상적으로 전달되도록 수정했습니다.🔗 관련 이슈 / JIRA
✅ 체크리스트
🙏 기타 사항
이 작업은 내가 jvm gc를 튜닝하는 작업을 진행해보고 싶어서 !! 하다가 이 부분의 설정이 필요할 것 같아서 pr 올렸엉 !!