-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat#24/application.yml 작성 및 도커 컴포즈 구성 #26
Merged
Merged
Conversation
This file contains 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
- 로컬 환경에서의 데이터베이스 및 Redis 설정 추가 - 도커 환경에서의 데이터베이스 및 Redis 설정 추가 - Hibernate 설정 추가 - 로깅 설정 추가 - 서버 포트 설정 추가
- Eclipse Temurin 17 JRE Alpine 이미지 사용 - Gradle 빌드 명령어 추가 - 앱 디렉토리 생성 및 이동 - 호스트의 build/libs 디렉토리에서 jar 파일 복사 - 컨테이너 실행 시 java -jar 명령어로 앱 실행
- Spring Boot 애플리케이션, Redis, MySQL 서비스 정의 - Spring Boot 애플리케이션에 대한 포트 매핑 설정 - Redis 및 MySQL 서비스에 대한 포트 매핑 설정 - MySQL 데이터베이스 초기화 설정 - 애플리케이션 프로파일 설정 - MySQL 데이터 볼륨 설정 - MySQL 타임존 설정
- dev 브랜치가 develop으로 이름을 변경함에 따라 액션 스크립트 변경
Code Coverage Report
|
kkyu0718
approved these changes
Aug 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고많으셨습니다! 😃
bellringstar
approved these changes
Aug 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
너무 잘했습니다..!
minnim1010
added a commit
that referenced
this pull request
Aug 13, 2024
* docs: EnumType 인터페이스에 Javadoc 주석 추가 Spring Rest Docs에 enum을 나타내기 위해 사용해야 하는 타입임을 명시함 * feat: 전역 에러 코드 정의 - 전역 사용되는 에러 코드 및 인터페이스 정의함 * feat: 공통 응답 및 에러 응답 객체 정의 - 처리 상태 status인 ResponseStatus 정의 - 공통 응답 객체 ApiResponse, 공통 에러 응답 객체 ApiErrorResponse 정의 * feat#24/application.yml 작성 및 도커 컴포즈 구성 (#26) ## ✅ PR 체크 - [x] 하나의 PR 에는 100줄 정도의 커밋을 한다는 규칙을 지키고 있나요? - [x] 무엇을 변경했는지 충분히 설명하고 있나요? - [x] 새로운 기술을 사용했다면, 그 기술을 설명하고 있나요? - [x] 이해하기 어려운 비즈니스 로직에 관해서 부연 설명을 하고 있나요? - [x] 팀원 한 명을 Assign 했나요? - [x] 작업 범위에 대해서 테스트를 작성하셨나요? ## 🚨 관련 이슈 #24 아직 Mock 데이터 스크립트 및 DDL을 작성하진 않아서 이슈는 닫지 않을께요 ! ## 🌈 작업 상황 로컬에서 docker 테스트 및 docker를 제외한 로컬 테스트를 위해서 application.yml, docker 관련 스크립트를 작성했어요. 로컬에선 redis, mysql을 설치하고 mysql에는 twodari라는 데이터베이스를 만들어서 실행하면 됩니다. 도커는 도커 데스크톱을 키고 docker compose up 하시면 자동으로 구성됩니다 ! 그리고 dev 브랜치의 이름을 develop으로 변경함에 따라 jacoco-rule 액션 스크립트의 적용 브랜치 이름을 수정했어요 ! 더 궁금한 점이 있다면 comment로 달아주세요 ! - local 및 docker 환경에서의 application.yml 작성 - Dockerfile 작성 - docker-compose.yml 작성 - jacoco-rule.yml 수정 ## 📌 기타 --------- Co-authored-by: HyeonJun0530 <[email protected]> * docs: EnumType 인터페이스에 Javadoc 주석 추가 Spring Rest Docs에 enum을 나타내기 위해 사용해야 하는 타입임을 명시함 * feat: 전역 에러 코드 정의 - 전역 사용되는 에러 코드 및 인터페이스 정의함 * feat: 공통 응답 및 에러 응답 객체 정의 - 처리 상태 status인 ResponseStatus 정의 - 공통 응답 객체 ApiResponse, 공통 에러 응답 객체 ApiErrorResponse 정의 * fix: 빈 문자열 반환하는 getter 수정 - name 반환하도록 수정함 * ci: code review bot 프롬프트 수정 리뷰 중 필요 없는 부분을 제거하기 위해 프롬프트 수정함 * feat: ResponseStatus 삭제 및 성공 응답 객체에 HttpStatus 추가 - ResponseStatus의 실패, 에러가 상태 코드의 400번대, 500번대와 매핑되어 나눌 필요 없다고 판단되어 삭제함 * feat: 공통 응답 객체 필드 수정 - JSON 형식에 맞도록 공통 응답 객체의 필드 수정함 * build: 공통 응답 객체를 jacoco 테스트에서 제외 * feat: 서버 내부에서 확인한 예외 핸들러 구현 서버 내부에서 예외 확인한 핸들러 구현 * feat: 서버 내부에서 확인하지 못한 예외 핸들러 구현 * refactor: spring rest docs 관련 클래스 패키지 수정 - docs 패키지 생성 - EnumType 및 TestController 클래스를 docs로 이동 * ci: jacoco report에서 테스트 공통 응답 객체 테스트 제외 jacoco report에서 공통 응답 객체 테스트 제외함 * ci: code review bot 프롬프트 수정 리뷰 봇 분량 문제로 프롬프트 수정함 * feat: exceptionHandler 클래스에 순서 추가 명시적 순서 확인을 위해 exceptionHandler 클래스에 ExceptionHandler별 순서 추가함 --------- Co-authored-by: 김현준 <[email protected]> Co-authored-by: HyeonJun0530 <[email protected]>
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.
✅ PR 체크
🚨 관련 이슈
#24
아직 Mock 데이터 스크립트 및 DDL을 작성하진 않아서 이슈는 닫지 않을께요 !
🌈 작업 상황
로컬에서 docker 테스트 및 docker를 제외한 로컬 테스트를 위해서 application.yml, docker 관련 스크립트를 작성했어요.
로컬에선 redis, mysql을 설치하고 mysql에는 twodari라는 데이터베이스를 만들어서 실행하면 됩니다.
도커는 도커 데스크톱을 키고 docker compose up 하시면 자동으로 구성됩니다 !
그리고 dev 브랜치의 이름을 develop으로 변경함에 따라 jacoco-rule 액션 스크립트의 적용 브랜치 이름을 수정했어요 !
더 궁금한 점이 있다면 comment로 달아주세요 !
📌 기타