How tamil27092005/cicd works
This repository demonstrates a CI/CD product: a push triggers Jenkins to validate the Python app, build and publish a container, provision AWS infrastructure when requested, deploy to EC2, and check the deployed health endpoint. Terraform owns infrastructure provisioning; Ansible configures the host and deploys the image. The Flask app provides welcome, health, and runtime-info endpoints. Pipeline and infrastructure links below follow README documentation; Jenkinsfile and deployment source were not sampled, so implementation details beyond those documented are not inferred.
Main entry points: Jenkinsfile Jenkins · playbook.yml Host Deployment · Dockerfile Image Build · terraform Infrastructure Provisioning
Components 15
CI/CD Pipeline
- Jenkins
Jenkinsfile - Source Checkout
Jenkinsfile - Lint
Jenkinsfile - Unit Tests
tests - Health Smoke Test
Jenkinsfile
Container Release
- Image Build
Dockerfile
Infrastructure
- Infrastructure Provisioning
terraform - Host Deployment
ansible/playbook.yml - Docker Setup
ansible/roles/docker/tasks/main.yml - App Deployment
ansible/roles/app/tasks/main.yml
Application Runtime
- Flask App
app/main.py
Other components
- Developer
- GitHub
- Docker Hub
- AWS EC2
Connections 17
- Developer → GitHub: pushes to
README.md - GitHub → Jenkins: triggers
README.md - Jenkins → Source Checkout: runs
README.md - Source Checkout → Lint: then runs
README.md - Lint → Unit Tests: then runs
README.md - Jenkins → Image Build: builds
README.md - Image Build → Docker Hub: pushes image
README.md - Jenkins → Infrastructure Provisioning: optionally runs
README.md - Infrastructure Provisioning → AWS EC2: provisions
README.md - Jenkins → Host Deployment: runs
README.md - Host Deployment → AWS EC2: configures and deploys
README.md - Host Deployment → Docker Setup: installs Docker
README.md - Host Deployment → App Deployment: deploys app
README.md - Docker Hub → AWS EC2: image pulled by
README.md - AWS EC2 → Flask App: runs
README.md - Jenkins → Health Smoke Test: checks health
README.md - Health Smoke Test → Flask App: requests health
README.md