# abhicy/python-cicd-project architecture

> Architecture diagram of the GitHub repository abhicy/python-cicd-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhicy/python-cicd-project
- Repository: https://github.com/abhicy/python-cicd-project

## Overview

This repository demonstrates delivery of a Python web app through Jenkins: source checkout, dependency installation, container build, registry push, and deployment to AWS EC2. The Flask app is the runtime product; the Dockerfile packages it, while three Jenkinsfiles represent pipeline configurations. The README documents the workflow, but the Jenkinsfiles and Dockerfile were not sampled, so their detailed behavior and configuration-specific differences cannot be verified. Edges below reflect documented relationships rather than inspected pipeline implementation.

Main entry points: [`Jenkinsfile`](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile) (Jenkins Pipeline), [`Dockerfile`](https://github.com/abhicy/python-cicd-project/blob/main/Dockerfile) (Image Build), [`Jenkinsfile-1for-ECR`](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-1for-ECR) (ECR Pipeline Config), [`Jenkinsfile-2`](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-2) (Pipeline Config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["CI/CD Pipeline"]
  node_jenkins["Jenkins Pipeline"]
  node_ecr_config["ECR Pipeline Config"]
  node_pipeline_variant["Pipeline Config"]
  node_checkout["Source Checkout"]
  node_dependencies["Dependency Install<br/>[requirements.txt]"]
  node_tests["Unit Tests"]
end

subgraph group_application["Python Application"]
  node_flask_app["Flask Application<br/>[app.py]"]
end

subgraph group_delivery["Container Delivery"]
  node_docker_build["Image Build"]
  node_deployment["Application Deployment"]
end

node_developer(("Developer"))
node_github["GitHub Repository"]
node_registry[("Container Registry")]
node_ec2["AWS EC2"]

node_developer -->|"pushes source"| node_github
node_github -->|"provides source"| node_checkout
node_jenkins -->|"runs stage"| node_checkout
node_jenkins -->|"installs"| node_dependencies
node_jenkins -->|"runs stage"| node_tests
node_jenkins -->|"builds image"| node_docker_build
node_docker_build -->|"packages"| node_flask_app
node_jenkins -->|"pushes image"| node_registry
node_jenkins -->|"runs stage"| node_deployment
node_deployment -->|"deploys container"| node_ec2
node_ecr_config -.->|"pipeline variant"| node_jenkins
node_pipeline_variant -.->|"pipeline variant"| node_jenkins

click node_jenkins "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile"
click node_ecr_config "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-1for-ECR"
click node_pipeline_variant "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-2"
click node_checkout "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile"
click node_dependencies "https://github.com/abhicy/python-cicd-project/blob/main/requirements.txt"
click node_tests "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile"
click node_docker_build "https://github.com/abhicy/python-cicd-project/blob/main/Dockerfile"
click node_deployment "https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile"
click node_flask_app "https://github.com/abhicy/python-cicd-project/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_jenkins,node_ecr_config,node_pipeline_variant,node_checkout,node_dependencies,node_tests toneBlue
class node_flask_app,node_registry toneAmber
class node_docker_build,node_deployment toneMint
class node_developer,node_github,node_ec2 toneIndigo
```

## Components

### CI/CD Pipeline

- [Jenkins Pipeline](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile): `Jenkinsfile`
- [ECR Pipeline Config](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-1for-ECR): `Jenkinsfile-1for-ECR`
- [Pipeline Config](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile-2): `Jenkinsfile-2`
- [Source Checkout](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile): `Jenkinsfile`
- [Dependency Install](https://github.com/abhicy/python-cicd-project/blob/main/requirements.txt): `requirements.txt`
- [Unit Tests](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile): `Jenkinsfile`

### Python Application

- [Flask Application](https://github.com/abhicy/python-cicd-project/blob/main/app.py): `app.py`

### Container Delivery

- [Image Build](https://github.com/abhicy/python-cicd-project/blob/main/Dockerfile): `Dockerfile`
- [Application Deployment](https://github.com/abhicy/python-cicd-project/blob/main/Jenkinsfile): `Jenkinsfile`

### Other components

- **Developer**
- **GitHub Repository**
- **Container Registry**
- **AWS EC2**

## Connections

- Developer → GitHub Repository: pushes source (evidence: `README.md`)
- GitHub Repository → Source Checkout: provides source (evidence: `README.md`)
- Jenkins Pipeline → Source Checkout: runs stage (evidence: `README.md`)
- Jenkins Pipeline → Dependency Install: installs (evidence: `README.md`)
- Jenkins Pipeline → Unit Tests: runs stage (evidence: `README.md`)
- Jenkins Pipeline → Image Build: builds image (evidence: `README.md`)
- Image Build → Flask Application: packages (evidence: `README.md`)
- Jenkins Pipeline → Container Registry: pushes image (evidence: `README.md`)
- Jenkins Pipeline → Application Deployment: runs stage (evidence: `README.md`)
- Application Deployment → AWS EC2: deploys container (evidence: `README.md`)
- ECR Pipeline Config → Jenkins Pipeline: pipeline variant
- Pipeline Config → Jenkins Pipeline: pipeline variant
