How shalinidasaridev/devops-project-04-jenkins-ecr-ec2 works
This repository demonstrates an automated Node.js deployment from GitHub through Jenkins and Docker to AWS ECR and EC2. The deployed Express service listens on port 5000, while the documented EC2 command publishes it on port 80. Pipeline stages beyond the sampled application source are represented from the README; their implementation details are not verified in the excerpts.
Main entry points: Jenkinsfile Jenkins · Dockerfile Docker Image Build · server.js Express Service
Components 12
CI Pipeline
- Jenkins
Jenkinsfile - Source Checkout
Jenkinsfile - Docker Image Build
Dockerfile
Image Registry
- ECR Authentication
Jenkinsfile - ECR Registry
EC2 Deployment
- SSH Deployment
Jenkinsfile - EC2 Host
- Pull Image
Jenkinsfile - Container Restart
Jenkinsfile - Express Service
server.js
Other components
- Code Push
- GitHub
Connections 12
- Code Push → GitHub: pushes code
README.md - GitHub → Jenkins: triggers pipeline
README.md - Jenkins → Source Checkout: checks out
README.md - Jenkins → Docker Image Build: builds image
README.md - Jenkins → ECR Authentication: authenticates
README.md - ECR Authentication → ECR Registry: logs in
README.md - Jenkins → ECR Registry: pushes image
README.md - Jenkins → SSH Deployment: connects via SSH
README.md - SSH Deployment → EC2 Host: deploys to
README.md - EC2 Host → ECR Registry: pulls image
README.md - EC2 Host → Container Restart: restarts container
README.md - Container Restart → Express Service: runs service
README.md