분류 전체보기
-
CodePipeline으로 CI/CD 구축하기인프라/aws 2024. 3. 19. 03:22
프로젝트를 진행하면서 게시글 서비스를 github action과 docker hub를 사용해서 ci/cd를 구축해서 사용하고 있었습니다. 이번에 유저 서비스를 새로 만들면서 인프라 툴을 여러 곳에 분산해서 사용하는 것보다 한 곳으로 모으는 것에 이점이 있을 것 같아서 이미지 관리와 CI/CD 방법을 변경하면서 작성하는 글입니다. 여러 차례 막히는 구간이 생겨서 하루 종일 고생하다가 정리해두는 것이 좋을 것 같아 오랜만에 글로 남깁니다. [관련 포스팅] 1. Elastic Container Registry (ECR) 로 도커 이미지 관리하기 2. CodeBuild로 ECR 갱신하기 3. CodeDeploy로 EC2에 배포하기 4. CodePipeline으로 CI/CD 구축하기 글은 크게 5가지 항목으로 진..
-
CodeDepoly로 EC2에 배포하기인프라/aws 2024. 3. 18. 13:52
프로젝트를 진행하면서 게시글 서비스를 github action과 docker hub를 사용해서 ci/cd를 구축해서 사용하고 있었습니다. 이번에 유저 서비스를 새로 만들면서 인프라 툴을 여러 곳에 분산해서 사용하는 것보다 한 곳으로 모으는 것에 이점이 있을 것 같아서 이미지 관리와 CI/CD 방법을 변경하면서 작성하는 글입니다. 여러 차례 막히는 구간이 생겨서 하루 종일 고생하다가 정리해두는 것이 좋을 것 같아 오랜만에 글로 남깁니다. [관련 포스팅] 1. Elastic Container Registry (ECR) 로 도커 이미지 관리하기 2. CodeBuild로 ECR 갱신하기 3. CodeDeploy로 EC2에 배포하기 4. CodePipeline으로 CI/CD 구축하기 글은 크게 5가지 항목으로 진..
-
CodeBuild로 ECR 갱신하기인프라/aws 2024. 3. 18. 13:38
프로젝트를 진행하면서 게시글 서비스를 github action과 docker hub를 사용해서 ci/cd를 구축해서 사용하고 있었습니다. 이번에 유저 서비스를 새로 만들면서 인프라 툴을 여러 곳에 분산해서 사용하는 것보다 한 곳으로 모으는 것에 이점이 있을 것 같아서 이미지 관리와 CI/CD 방법을 변경하면서 작성하는 글입니다. 여러 차례 막히는 구간이 생겨서 하루 종일 고생하다가 정리해두는 것이 좋을 것 같아 오랜만에 글로 남깁니다. [관련 포스팅] 1. Elastic Container Registry (ECR) 로 도커 이미지 관리하기 2. CodeBuild로 ECR 갱신하기 3. CodeDeploy로 EC2에 배포하기 4. CodePipeline으로 CI/CD 구축하기 글은 크게 5가지 항목으로 진..
-
[CodeDeploy] appspec.yml의 destination 설정인프라/aws 2024. 3. 17. 18:07
Code Deploy 사용 중에 만난 이슈 사항입니다. 나중에도 참고할 일이 생길 수 있을 것 같아 남겨봅니다. 문제의 appspec.yml 입니다. ec2 터미널에서 cd ~/ 를 할 경우 유저의 홈으로 이동하기에 destination을 ~/ 으로 설정하였습니다. 원하는 건 홈에 빌드에 필요한 파일들이 설치되는 것이 었습니다. version: 0.0 os: linux files: - source: / destination: ~/ hooks: ApplicationStop: - location: deploy_scripts/new_script.sh timeout: 300 runas: root Code Deploy 배포가 실패해서 로그를 찾아봤습니다. (/var/log/aws/codedeploy-agent/c..
-
Linux에서 사용자에 따른 환경변수 설정인프라/linux 2024. 3. 17. 15:40
Code Deploy를 사용해서 ci/cd를 구축하던 중 만난 이슈를 정리해봅니다. Code Deploy에서 실행시킬 스크립트의 작동을 확인하기 위해서 EC2에서 실행시키면서 발생하는 권한과 환경변수 설정 이슈 입니다. (EC2에서 RHEL을 사용하고 있습니다.) 글은 크게 4가지 항목으로 진행됩니다. 1. 환경변수가 적용이 되지 않거나 도커가 실행이 되지 않거나 2. 왜? bash_profile!? 3. 해결책 1. 환경변수가 적용이 되지 않거나 도커가 실행이 되지 않거나 CI/CD에 사용되는 스크립트에 쓰일 환경변수를 ./bash_profile에 미리 설정을 하였습니다. #!/bin/bash echo "export USER_ID=your_aws_id" >> ~/.bash_profile echo "e..
-
Elastic Container Registry (ECR) 로 도커 이미지 관리하기인프라/aws 2024. 3. 16. 21:04
프로젝트를 진행하면서 게시글 서비스를 github action과 docker hub를 사용해서 ci/cd를 구축해서 사용하고 있었습니다. 이번에 유저 서비스를 새로 만들면서 인프라 툴을 여러 곳에 분산해서 사용하는 것보다 한 곳으로 모으는 것에 이점이 있을 것 같아서 이미지 관리와 CI/CD 방법을 변경하면서 작성하는 글입니다. 여러 차례 막히는 구간이 생겨서 하루 종일 고생하다가 정리해두는 것이 좋을 것 같아 오랜만에 글로 남깁니다. [관련 포스팅] 1. Elastic Container Registry (ECR) 로 도커 이미지 관리하기 2. CodeBuild로 ECR 갱신하기 3. CodeDeploy로 EC2에 배포하기 4. CodePipeline으로 CI/CD 구축하기 글은 크게 4가지 항목으로 진..
-
-
N + 1 정복하기 <5. Entity Graph>프레임워크/Spring Boot 2024. 2. 21. 13:27
시리즈1. https://iwsaitw.tistory.com/entry/N-1-정복하기 시리즈2. https://iwsaitw.tistory.com/entry/N-1-정복하기-2-FetchTypeEAGER 시리즈3. https://iwsaitw.tistory.com/entry/N-1-정복하기-3-Fetch-Join 시리즈4. https://iwsaitw.tistory.com/entry/N-1-정복하기-4-BatchSize (소스코드: https://github.com/blog-example/-JPA-N_Plus_1) ORM을 사용하면 만나는 흔한 이슈 중 하나인 N + 1 ! 명확하게 설명할 수 있을 정도로 머리속에 집어넣어보겠습니다. 이번 글에서는 Entity Graph를 활용해서 N + 1을 해결하는..