{"id":14984618,"url":"https://github.com/ahmedalaa14/devops-pipeline-python","last_synced_at":"2026-02-10T03:30:50.118Z","repository":{"id":248578820,"uuid":"829089898","full_name":"ahmedalaa14/DevOps-Pipeline-Python","owner":"ahmedalaa14","description":"Deploy Python App on K8s Cluster Using Jenkins Pipeline","archived":false,"fork":false,"pushed_at":"2024-08-22T15:40:00.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T01:38:12.443Z","etag":null,"topics":["aws","docker","docker-compose","eks-cluster","jenkins","kubernetes","terraform"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmedalaa14.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-15T18:27:03.000Z","updated_at":"2024-11-23T19:42:44.000Z","dependencies_parsed_at":"2024-08-22T17:30:06.827Z","dependency_job_id":"f93bb28d-4175-49c1-a49f-16eddb3cb20d","html_url":"https://github.com/ahmedalaa14/DevOps-Pipeline-Python","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.13043478260869568","last_synced_commit":"6f2a57752cc0e73e4434dbbacd7ed5e9d7c10a1b"},"previous_names":["ahmedalaa14/devops-pipeline-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedalaa14/DevOps-Pipeline-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2FDevOps-Pipeline-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2FDevOps-Pipeline-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2FDevOps-Pipeline-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2FDevOps-Pipeline-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedalaa14","download_url":"https://codeload.github.com/ahmedalaa14/DevOps-Pipeline-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedalaa14%2FDevOps-Pipeline-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271043900,"owners_count":24689851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","docker","docker-compose","eks-cluster","jenkins","kubernetes","terraform"],"created_at":"2024-09-24T14:09:20.751Z","updated_at":"2026-02-10T03:30:50.079Z","avatar_url":"https://github.com/ahmedalaa14.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploy Python App on K8s Cluster Using Jenkins Pipeline\n\n- This project is to build Jenkins EC2 on AWS and use Jenkins to run 3 Jenkins files to create a cluster then deploy our python application on it, and Finally destroy all build resources\n\n## Used tools:\n-\t Terraform\n-\tJenkins\n-\tK8s\n-\tDocker\n-\tAws\n\n\n## Step 1: Jenkins EC2:\n\n`NOTE: Make sure you have terraform installed, create terraform.tfvars file with the variables (ec2-ami, region \u0026 your public ssh key) then do the following:`\n\n```\ncd terraform\n\nterraform init\n\nterraform apply -auto-approve\n```\n\n## Step 2: Prerequisites:\n\n`NOTE: replace the public-ip with the` **instance_public_ip** `that will showup in terraform output`\n\n```\nssh ubuntu@public-ip\n\nvim install.sh\n\nchmod +x install.sh\n\n./install.sh\n```\n\n## Step 3: Setup Jenkins:\n\n1. Navigate to **Manage Jenkins** \u003e\u003e **Manage Plugins** \u003e\u003e **Available tab** \u003e\u003e search for **CloudBees AWS Credentials** \u003e\u003e **Install without Restart**\n\n2. Navigate to **Manage Jenkins** \u003e\u003e **Manage Credentials** \u003e\u003e **global** \u003e\u003e **Global Credentials** \u003e\u003e **Add Credentials**\n\n3. Add AWS Credentials, repeat step 2 again to add Github credentials\n\n## Step 4: Create Jenkins Pipeline:\n\n1. Navigate to **Dashboard** \u003e\u003e **Create a Job**\n\n2. Give it a name \u003e\u003e Choose Pipeline\n\n3. **Pipeline** Tab \u003e\u003e Choose **Pipeline Script from SCM** \u003e\u003e Choose **Git** \u003e\u003e Add **Repository URL** \u003e\u003e Add **Credentails** \u003e\u003e Specify the **Branch** \u003e\u003e Then the **Jenkinsfile** path inside the repository\n\n4. Run the created job \u003e\u003e Create 2 similar jobs that navigate to **Jenkins-Deploy/Jenkinsfile** that will run automatically after Job one is done and **Jenkins-RM-EKS/Jenkinsfile** that you will use to remove your cluster\n\n## Step 5: Access your application:\n\n`Note: After the 2nd Jenkins job run and the application is deployed`\n\nNavigate to the 2nd job \u003e\u003e **Console Output** \u003e\u003e Get your **Application URL** which you will found in the end next to **DNSNAME**.\n\nIt should look something like this (use the application port to access your app, we used here port _8000_ ):\n\n```\na0e6e955cb648xxxxxxxxxxxx-xxxxxx025.REGION.elb.amazonaws.com:8000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fdevops-pipeline-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedalaa14%2Fdevops-pipeline-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedalaa14%2Fdevops-pipeline-python/lists"}