Skip to content

verma-kunal/cncf-hooghly-workshop

Repository files navigation

Demo - Simple CI/CD Pipeline With Jenkins

Prerequisites

1. Local Setup

  • Follow the instructions mentioned here.

2. Run Tests

python manage.py test -v=3

3. Run Docker Container (locally)

docker build -t django-todo:latest .

docker run -dp 8000:8000 django-todo:latest

4. Setup a Jenkins Pipeline

  • Detailed steps given here

5. Jenkinsfile

  • Detailed breakdown of Jenkinsfile given here

6. Pipeline Execution using Jenkins

  1. Make a code change and commit to git.
  2. Trigger the Jenkins pipeline
  3. Check docker container status
  4. Check Docker Hub status
  5. Access the app (with the new changes)

Resources

Refer the resources to learn more!