Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevden01/jenkins-docker-python-ci-cd-pipeline
CI/CD pipeline demonstration using Jenkins, Docker, and Python. This project showcases a containerized Python application integrated with Jenkins for automated builds, tests, and deployments.
https://github.com/kevden01/jenkins-docker-python-ci-cd-pipeline
cicd docker dockerfile jenkins jenkinsfile pipeline python
Last synced: 9 days ago
JSON representation
CI/CD pipeline demonstration using Jenkins, Docker, and Python. This project showcases a containerized Python application integrated with Jenkins for automated builds, tests, and deployments.
- Host: GitHub
- URL: https://github.com/kevden01/jenkins-docker-python-ci-cd-pipeline
- Owner: KevDen01
- Created: 2024-08-28T11:32:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-26T13:54:41.000Z (29 days ago)
- Last Synced: 2024-11-26T14:36:12.222Z (29 days ago)
- Topics: cicd, docker, dockerfile, jenkins, jenkinsfile, pipeline, python
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins Docker Python CI/CD Pipeline
This project demonstrates setting up a Continuous Integration and Continuous Deployment (CI/CD) pipeline using Jenkins and Docker for a Python application.
## Project Structure
- `Dockerfile`: Defines the Docker image for the Python application.
- `Jenkinsfile`: Contains the Jenkins pipeline configuration.
- `docker-compose.yml`: Orchestrates Docker containers for the application and Jenkins.
- `requirements.txt`: Lists the Python dependencies.
- `manage.py`: Entry point for the Python application.
- `pipeline/`: Directory containing application-specific code.## Prerequisites
- Docker installed on your system.
- Docker Compose installed.
- Basic understanding of Jenkins and Docker.## Setup Instructions
1. **Clone the Repository:**
```bash
git clone https://github.com/KevDen01/Jenkins-Docker-Python-CI-CD-Pipeline.git
cd Jenkins-Docker-Python-CI-CD-Pipeline
```2. **Build and Start the Docker Containers:**
```bash
docker-compose up --build
```This command builds the Docker images and starts the containers as defined in `docker-compose.yml`.
3. **Access Jenkins:**
- Open your browser and navigate to `http://localhost:8080`.
- Follow the on-screen instructions to set up Jenkins.4. **Configure the Jenkins Pipeline:**
- In Jenkins, create a new Pipeline job.
- Set the pipeline script to use the `Jenkinsfile` from this repository.5. **Run the Pipeline:**
- Trigger the pipeline build in Jenkins.
- Monitor the build process and ensure all stages complete successfully.## Application Usage
- **Starting the Application:**
The application is managed through Docker Compose. Use the following command to start the application:
```bash
docker-compose up
```- **Running Tests:**
Tests are defined within the pipeline and are executed during the build process.
## Contributing
Contributions are welcome! Please fork the repository and submit a pull request.