How adilsalah996/python-devops-pipeline works
This repository is a small Python web application presented as a DevOps learning project. Its user-facing workflow is an HTTP request routed by the application to either the homepage or JSON health response. The broader documented product also includes a hardened Docker image, automated tests, CI image scanning, and a documented EC2 deployment. The application source was inspected; Docker, test, and workflow relationships below rely on README statements rather than inspected implementation details.
Main entry points: ci.yml CI workflow · app.py HTTP server · Dockerfile Hardened image · test_app.py Application tests
Components 10
Web application
- HTTP server
app.py - Homepage response
app.py - Health response
app.py
Container runtime
- Hardened image
Dockerfile - Container runtime
Dockerfile
CI and verification
- CI workflow
.github/workflows/ci.yml - Application tests
test_app.py - Trivy scanner
Cloud deployment
- AWS EC2 host
Other components
- HTTP client
Connections 8
- HTTP client → HTTP server: sends HTTP
README.md - HTTP server → Homepage response: serves default route
app.py - HTTP server → Health response: routes /health
app.py - CI workflow → Application tests: runs tests
README.md - CI workflow → Hardened image: builds image
README.md - CI workflow → Trivy scanner: scans image
README.md - Hardened image → Container runtime: runs as container
README.md - AWS EC2 host → Container runtime: hosts deployment
README.md