{"id":22305013,"url":"https://github.com/diptadip/deploying_django","last_synced_at":"2026-04-11T07:03:37.279Z","repository":{"id":263049052,"uuid":"888999161","full_name":"Diptadip/deploying_django","owner":"Diptadip","description":"Django App Deployment using Docker, Jenkins and GitHub Webhooks","archived":false,"fork":false,"pushed_at":"2024-12-03T12:53:55.000Z","size":15480,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T02:02:37.988Z","etag":null,"topics":["aws","django","docker","ec2","github-webhooks","jenkins"],"latest_commit_sha":null,"homepage":"http://13.233.237.194:8002/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Diptadip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-11-15T12:13:51.000Z","updated_at":"2024-11-29T11:28:07.000Z","dependencies_parsed_at":"2024-11-15T20:29:51.431Z","dependency_job_id":"58fdbf25-998a-4272-88d4-3ede6385646e","html_url":"https://github.com/Diptadip/deploying_django","commit_stats":null,"previous_names":["diptadip/deploying_django"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Diptadip/deploying_django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diptadip%2Fdeploying_django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diptadip%2Fdeploying_django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diptadip%2Fdeploying_django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diptadip%2Fdeploying_django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Diptadip","download_url":"https://codeload.github.com/Diptadip/deploying_django/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Diptadip%2Fdeploying_django/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262697229,"owners_count":23349889,"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","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","django","docker","ec2","github-webhooks","jenkins"],"created_at":"2024-12-03T19:09:22.964Z","updated_at":"2026-04-11T07:03:37.246Z","avatar_url":"https://github.com/Diptadip.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django App Deployment with Docker, Jenkins, and GitHub Webhooks\n\nThis project demonstrates deploying a simple Django application to an AWS EC2 instance, containerizing it using Docker, automating the deployment process with Jenkins, and integrating GitHub webhooks for continuous integration and deployment.\n\n## Features\n- **Django App Deployment:** A basic Django application deployed on AWS EC2 that prints \"Hello, World!\".\n- **Containerization:** The app is containerized using Docker with a custom Dockerfile and Docker image.\n- **CI/CD Pipeline:** Automated Docker deployment using Jenkins installed on the EC2 instance.\n- **GitHub Integration:** Configured GitHub webhooks to trigger auto-builds on Jenkins whenever changes are pushed to the repository.\n\n## Tech Stack\n- **Framework:** Django\n- **Cloud Platform:** AWS EC2\n- **Containerization:** Docker\n- **CI/CD Tool:** Jenkins\n- **Version Control:** GitHub\n\n## Setup and Deployment\n\n### Prerequisites\n- AWS account with an EC2 instance set up\n- Docker installed on the EC2 instance\n- Jenkins installed and running on the EC2 instance\n- GitHub repository with this project's code\n\n### Steps to Deploy\n1. **Clone the Repository:**\n   ``` bash\n   git clone https://github.com/Diptadip/deploying_django.git\n   cd deploying_django\n   ```\n2. **Build the Docker Image**\n\t```bash\n\tdocker build . -t django-app\n\t```\n3. **Run the Docker Container:**    \n    ```bash\n    docker run -d -p 8002:8002 django-app\n    ```\n    \n4.  **Set Up Jenkins:**    \n    -  Install the necessary plugins (Git, Docker, etc.).\n    -  Create a Jenkins job that pulls the repository and runs deployment scripts.\n  \n4.  **Configure GitHub Webhooks:**\n    \n    -   Go to your repository settings on GitHub.\n    -   Add a webhook URL pointing to Jenkins (e.g., `http://\u003cEC2-IP\u003e:8080/github-webhook/`).\n    -   Test the webhook and verify builds trigger automatically.\n   \n5.  **Access the App:** Open a browser and navigate to `http://\u003cEC2-IP\u003e:8002` to see the \"Hello, World!\" page.\n    \n\n## Future Enhancements\n\n-  Setup Cloud Agent for Jenkins build.\n-   Add logging and monitoring for deployments.\n-   Scale the application using AWS ECS or Kubernetes.\n-   Implement SSL/TLS for secure communication.\n\n## Screenshots\n\n**Jenkins auto-build from GitHub commit**\n\n![Screenshot 2024-11-29 161100](https://github.com/user-attachments/assets/376db154-a198-49ea-8f73-4a1b81bdbd5a)\n\n**Console Output**\n\n![image](https://github.com/user-attachments/assets/9e1a822c-1c7b-443a-a135-bc3f8d3224c0)\n\n\n\n\n\n\n  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptadip%2Fdeploying_django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiptadip%2Fdeploying_django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptadip%2Fdeploying_django/lists"}