hotfix - docker 관련 수정 - #112
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough배포 파이프라인을 로컬 빌드 업로드 방식으로 전환하고, EC2 원격에서 Docker/Compose 설치 확인 후 docker-compose up -d --build로 배포하도록 변경. Dockerfile은 런타임 단일 스테이지로 단순화되고, Compose는 명시적 Dockerfile 경로를 지정. .env는 직접 업로드. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant GH as GitHub Actions
participant EC2 as EC2 Host
participant DK as Docker/Compose
rect rgb(245,248,255)
note over GH: 로컬 빌드 및 업로드
GH->>GH: Set up JDK (Temurin 17)
GH->>GH: Gradle build (backendProject, -x test)
GH->>GH: Rename to backendProject/app.jar
GH->>EC2: Upload app.jar, Dockerfile, docker-compose-prod.yml, .env
end
rect rgb(243,255,247)
note over EC2,Dk: 원격 배포 준비
EC2->>EC2: Install/enable/start Docker (dnf/yum)
EC2->>EC2: Ensure docker group for ec2-user
EC2->>EC2: Install docker-compose if missing
end
rect rgb(255,250,240)
note over EC2,Dk: 배포 실행
EC2->>DK: docker-compose up -d --build
DK-->>EC2: Services started (api1, api2)
EC2->>DK: docker image prune -f
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45–75 minutes Possibly related issues
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit