[FIX] 로그 디렉터리 권한 문제 해결#57
Merged
Merged
Conversation
- Dockerfile에 /app/logs를 app 유저 소유로 생성 - non-root 컨테이너의 로그 파일 쓰기 실패(기동 실패) 방지 - named volume 사용 시 이미지 소유권으로 볼륨 초기화됨 IssueNum #56
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.
요약
새 로깅 기능(#53) 배포 후 CD가 실패했습니다. 원인은 non-root(
app) 컨테이너가 마운트된 로그 디렉터리(root 소유)에/app/logs/app.json을 쓰지 못해 기동에 실패한 것입니다. (응급으로 호스트 폴더chmod 777하여 정상화)근본 수정으로 Dockerfile에서
/app/logs를app유저 소유로 생성합니다.RUN mkdir -p /app/logs && chown app:app /app/logs연관 이슈 및 Close 할 이슈 작성
close #56
Pull Request 체크리스트
TODO