CSE320 - Unit1 - 4 Devops Ci-Cd
CSE320 - Unit1 - 4 Devops Ci-Cd
• What is DevOps?
• Benefits of DevOps
• DevOps Tools
• CI/CD Pipeline
• Benefits of CI/CD
2
Process
DevOps 3
Feedback Loop
<- - - - - - - - - - - - - - - - - - - - -
4
DevOps DevOps
Development Operations
• Allows a single team to handle the entire application lifecycle from development to testing,
deployment and operations
• Reduce the disconnection between software developers, quality assurance engineers and
system administrators
6
What is DevOps?
15
security
Contd.
1. Software Development
• Description: Startups and companies in software development adopt DevOps to build and deploy reliable
applications efficiently.
• Key Benefits:
• Accelerated development and deployment cycles.
• Reduction in risks associated with releasing software.
2. E-Commerce
• Description: E-commerce businesses leverage DevOps for faster setup times and optimized workflows.
• Key Benefits:
• Automated processes streamline operations.
• Enhances workflow efficiency, reducing time-to-market for features.
16
Contd.
3. Healthcare
• Description: The healthcare industry, being heavily regulated, relies on DevOps for addressing
data privacy and security challenges.
• Key Benefits:
• Compliance with strict regulations.
• Improved security and reliability in handling sensitive patient data.
4. Fintech/Banking
• Description: In the highly sensitive and regulated banking sector, DevOps is used to address
security concerns while maintaining agility.
• Key Benefits:
• Enhanced security protocols.
• Ensures compliance with industry regulations.
• Facilitates continuous delivery while minimizing risks.
17
Contd.
5. Social Impact Organizations/Development Sector
18
DevOps collaboration cycle:
DevOps cycle
19
Meaning of infinite loop:
illustrates how development and operations teams work together in a never-ending process
to build, deploy, operate, and improve applications.
Continuous Feedback:
Seamless feedback between development and operations at every stage ensures continuous
improvement of software and processes.
Seamless Collaboration:
Reflects the integration of teams, breaking down silos between development and operations.
DevOps benefits
21
DevOps Tools:
• Version Control: Git, GitHub, GitLab
22
CI/CD (Continuous Integration and Continuous Deployment) pipeline
A process used in software development to automate
building, testing and deploying code.
23
Imagine you are developing a food delivery app like Uber Eats
• Code: A developer adds a feature, like a new "dark mode" for the app.
• Commit: The developer saves (commits) the changes to a shared repository (like
GitHub).
• CI Pipeline:
• Build: The system automatically builds the app with the new feature to check if it
compiles correctly.
• Unit Tests: It tests only the "dark mode" feature to ensure it works as expected.
• Integration Tests: It ensures the new feature works with existing app features,
24 like
the checkout or order screens.
Contd.
• CD Pipeline:
• Review: The team reviews the feature for quality (optional for Continuous Deployment).
• Staging: The app is deployed to a staging environment where a team or beta users test
"dark mode" as if it's live.
• Production: Once stable, the feature is automatically or manually deployed to the app
that users download from app stores.
Real-Life Benefit: Every small change, like "dark mode," is tested, integrated and delivered
seamlessly to users with minimal downtime or errors.
25
CI/CD Pipeline
27
Tools for CI/CD
28
CI/CD Pipeline Workflow
• Source Control: Code pushed to version control repository.
30
Challenges in CI/CD Adoption
Continuous Deployment:
• ensures that tested, stable changes are delivered to users
quickly and reliably.
CI/CD Pipeline Workflow
• Minimizes human intervention in deployment.
35
CI/CD Pipeline Workflow