Skip to content

Commit

Permalink
ReadMe에 CI/CD 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
devchanki committed Oct 20, 2024
1 parent 14ec468 commit 7adee61
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@
- MongoDB
- Redis

## 2. 빌드 및 실행방법
```
## 2. 빌드 및 실행방법


1. 로컬에서 도커로 서비스 실행 시, 루트 폴더 내 Dockerfile 을 통한 빌드 이후 docker 폴더 내에 있는 docker-compose 파일로 실행
```
docker build -t o2o-backend:latest .
cd docker
docker-compose up -d o2o-be
```
2. CI/CD 구조
1. free tier 내 최소 비용을 위해, 컨테이너 저장 시 필요한 ECR, AWS CodeSeries를 통한 빌드 등 AWS 통합 서비스를 사용하지 않았습니다.
2. CI/CD 의 흐름은 Code push -> Gitlab Actions 에서 빌드 프로세스 이후 S3 에 업로드 / Codedeploy 호출 -> AWS Codedeploy 가 AWS EC2 에 업로드 이후 배포 실행. 배포에 대한 파일은 appspec.yaml 파일에 있습니다.
3. appspec.yaml 에 정의된 폴더로 파일을 이동 후, scripts 폴더 내 after-deploy.sh 파일을 실행하여 배포합니다.

## 3. 아키텍처

Expand Down

0 comments on commit 7adee61

Please sign in to comment.