How kranthi1382/devops-project12 works
This repository pairs a small Flask task manager with a CI/CD workflow documented for Jenkins, Docker, and AWS EC2. The main user workflow is viewing tasks, adding one, and seeing the updated list; a separate developer workflow pushes code to GitHub, triggering checkout, image build, and container replacement. The Jenkins pipeline is configured outside the repository, so its stages are documented capabilities rather than source modules. The app excerpt shows in-memory task handling and the health endpoint; deployment relationships come from the README.
Main entry points: app.py Flask application · Dockerfile Image build
Components 15
Flask application
- Flask application
app.py - In-memory tasks
app.py - Task list page
app.py - Add-task handler
app.py - Health endpoint
app.py
CI/CD delivery
- Jenkins pipeline
- Source checkout
- Image build
Dockerfile - Container deployment
Container runtime
- practice:latest image
Dockerfile - Application container
Dockerfile
External infrastructure
- GitHub
- AWS EC2 host
Other components
- Developer
- Web browser
Connections 20
- Developer → GitHub: pushes code
README.md - GitHub → Jenkins pipeline: triggers webhook
README.md - Jenkins pipeline → Source checkout: runs checkout
README.md - Source checkout → Image build: provides source
README.md - Jenkins pipeline → Image build: runs build
README.md - Image build → practice:latest image: builds image
README.md - Jenkins pipeline → Container deployment: runs deploy
README.md - Container deployment → Application container: replaces container
README.md - practice:latest image → Application container: starts from
README.md - AWS EC2 host → Jenkins pipeline: hosts
README.md - AWS EC2 host → Application container: hosts
README.md - Web browser → Flask application: requests application
README.md - Flask application → Task list page: routes GET /
app.py - Flask application → Add-task handler: routes POST /add
app.py - Flask application → Health endpoint: routes GET /health
app.py - Task list page → In-memory tasks: reads tasks
app.py - Add-task handler → In-memory tasks: appends task
app.py - Task list page → Web browser: returns HTML
app.py - Add-task handler → Task list page: redirects to
app.py - Health endpoint → Web browser: returns status
app.py