SlideShare a Scribd company logo
Python & DevOps
@pyfest 2015
Python & DevOps
@pyfest 2015
Python & DevOps
@pyfest 2015
Ahmed Bessifi @github/abessifi
DevOps Engineer @IMDEV
- Python, Flask, Puppet, Docker, Jenkins
Open source
- Author : Pyatta, repmgr-puppet
- Contributor : LWP, RQ, PoWA
- Member : Debian, openVswitch, metaflask
And you ?
DevOps !
Mixed Martial DevOps
Pyfest Tunisia 2015 - Python & DevOps
Pyfest Tunisia 2015 - Python & DevOps
DevOps, what is it for ?
- Ensure better development of the application.
- Continuous integration and deployment.
- Ensure that the application is working as expected
(monitoring, high availability, etc).
DevOps, what is it ?
DevOps, how to do it ?
What's all the fuss about ?
Docker :
“... an open platform for developers and
sysadmins to build, ship and run distributed
applications.”
https://www.docker.com/whatisdocker
Docker : Concepts
Images
A read only collection of “layers” joined together
via a union File System.
Containers
An instance of an image on which one or more
processes are running or have exited.
Docker : Use cases
- Development environments
- Application deployment
- Continuous integration
- Continuous delivery
- Platform-as-a-Service (PaaS)
+
Development
Environments
Dev Env : Components
- OS
- System libraries
- Python dependencies
- Database, cache, etc
Dev Env : Problems
- Constantly change
- Never truly consistent
- Miscommunication (Ops vs Devs)
Dev Env : Docker !
- Just write a Dockerfile !
- Easy to change and share
- 100 % isolated
- Always consistent
- Production ready
Continuous Integration
Why we write tests ?!
Python testing libs/frameworks :
●
- Pytest, Nose : Unittesting library (less boilerplate).
- Mock : easily create fakes for testing.
- WebTest : req/resp testing for WSGI web apps.
- Selenium : browser automation (web).
Why using CI ?
“A CI system improves the productivity of a
development team by automating various
things.”
Jenkins for Python :
- Run builds (pytest, tox, etc).
- Perform pep8 and Pyflakes checks.
- Display xUnit, coverage reports.
- Generate and publish docs.
- Build python/deb package(s).
DevOps in action
“workflow”
Pyfest Tunisia 2015 - Python & DevOps
Thank you !
'' We build software for people
who build software ''
<Codiak>
about.me/abessifi
github.com/abessifi

More Related Content

PPTX
Continuous integration ( jen kins travis ci)
KEY
Travis CI
PDF
In cluster open source testing framework - Microservices Meetup
PPT
CI and CD with Jenkins
PPTX
Continuous integration
PDF
Docker for Integration Testing
PDF
Travis-CI - Continuos integration in the cloud for PHP
Continuous integration ( jen kins travis ci)
Travis CI
In cluster open source testing framework - Microservices Meetup
CI and CD with Jenkins
Continuous integration
Docker for Integration Testing
Travis-CI - Continuos integration in the cloud for PHP

What's hot (20)

PPTX
Continuous Integration With Jenkins Docker SQL Server
PDF
OPENSHIFT CONTAINER PLATFORM CI/CD Build & Deploy
PDF
Docker Best Practices Workshop
PDF
Let’s start Continuous Integration with jenkins
PPT
Flash Camp Chennai - Build automation of Flex and AIR applications
PDF
Docker and DevOps - Why it matters
PDF
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
PDF
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
PDF
Jenkins CI
PDF
Testing as a container
PDF
calmio-cicd-containers
ODP
Continuous Integration and PHP
PDF
CI is dead, long live CI
PPTX
Provisioning environments. A simplistic approach
PPTX
SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code
PPTX
Introduction to jenkins
PPTX
Fits docker into devops
PDF
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
PDF
CICD by Teerapat
PPTX
Fluo CICD OpenStack Summit
Continuous Integration With Jenkins Docker SQL Server
OPENSHIFT CONTAINER PLATFORM CI/CD Build & Deploy
Docker Best Practices Workshop
Let’s start Continuous Integration with jenkins
Flash Camp Chennai - Build automation of Flex and AIR applications
Docker and DevOps - Why it matters
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Jenkins CI
Testing as a container
calmio-cicd-containers
Continuous Integration and PHP
CI is dead, long live CI
Provisioning environments. A simplistic approach
SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code
Introduction to jenkins
Fits docker into devops
.Net OSS Ci & CD with Jenkins - JUC ISRAEL 2013
CICD by Teerapat
Fluo CICD OpenStack Summit
Ad

Similar to Pyfest Tunisia 2015 - Python & DevOps (20)

PPTX
DevOps State of the Union 2015
PDF
ODP
DevOps, PaaS and the Modern Enterprise CloudExpo Europe presentation by Diane...
PDF
DevOps - Top Trends In 2019
PDF
Devops with Python by Yaniv Cohen DevopShift
PDF
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
PDF
The DevOps Paradigm
ODP
devops@cineca
PPTX
Machine learning in cybersecutiry
PDF
DevOps Engineer Training course online
PDF
DevOps-Engineer-Training-Courses -Online
PDF
DevOps -Engineer-Training-Online-Courses
PDF
Devops -Engineer-Training-Courses-Online
PDF
The Return of the Dull Stack Engineer
PPTX
Container DevOps in Azure
PPTX
About DevOps in simple steps
PDF
Docker Enables DevOps - Keep C.A.L.M.S. and Docker on ...
PDF
Introduction to DevOps and the Practical Use Cases at Credit OK
PDF
Better Operations into the Cloud
PPTX
Introduction to DevOps
DevOps State of the Union 2015
DevOps, PaaS and the Modern Enterprise CloudExpo Europe presentation by Diane...
DevOps - Top Trends In 2019
Devops with Python by Yaniv Cohen DevopShift
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
The DevOps Paradigm
devops@cineca
Machine learning in cybersecutiry
DevOps Engineer Training course online
DevOps-Engineer-Training-Courses -Online
DevOps -Engineer-Training-Online-Courses
Devops -Engineer-Training-Courses-Online
The Return of the Dull Stack Engineer
Container DevOps in Azure
About DevOps in simple steps
Docker Enables DevOps - Keep C.A.L.M.S. and Docker on ...
Introduction to DevOps and the Practical Use Cases at Credit OK
Better Operations into the Cloud
Introduction to DevOps
Ad

Recently uploaded (20)

PPTX
4 5 6 7 Intro to Ramayan MANAGEMENT LESSONS and Qualities.pptx
PDF
Joshua Moll on Leadership & Mindset..pdf
PDF
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
PPTX
Management and Leadership across culture at McDonald's
PPTX
Principles & Theories of Mgt-Master in PM.pptx
PDF
JOB APPLICATION AND RESUME WRITING IN MANAGEMENT
PPTX
BASIC H2S TRAINING for oil and gas industries
PPTX
EMOTIONAL INTELLIGENCE IN LEADERSHIP.pptx
PPTX
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
PDF
Eugene Orlovsky CEO & Founder of Perfsys
PPTX
Basics of Project Management for development of leadership skills in practice
PDF
Leading with Empathy: Building Inclusive Growth in Bangladesh
PDF
ORGANIZATIONAL communication -concepts and importance._20250806_112132_0000.pdf
PPTX
Ryan Daly Gallardo Prod Management PPT .pptx
PPTX
SM_Behavior Based Safety (BBS)_Unit V.pptx
PDF
250816-Risk Evaluation & Mitigation Strategy-CQS.pdf
PPT
Operations Management Supply-Chain Management
PDF
How to Present a Project Proposal to Stakeholders for Approval?
PPTX
Self-Awareness and Values Development presentation
PDF
The Untold Story of Swami Vijay Kumar Durai: Building PRS International
4 5 6 7 Intro to Ramayan MANAGEMENT LESSONS and Qualities.pptx
Joshua Moll on Leadership & Mindset..pdf
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
Management and Leadership across culture at McDonald's
Principles & Theories of Mgt-Master in PM.pptx
JOB APPLICATION AND RESUME WRITING IN MANAGEMENT
BASIC H2S TRAINING for oil and gas industries
EMOTIONAL INTELLIGENCE IN LEADERSHIP.pptx
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
Eugene Orlovsky CEO & Founder of Perfsys
Basics of Project Management for development of leadership skills in practice
Leading with Empathy: Building Inclusive Growth in Bangladesh
ORGANIZATIONAL communication -concepts and importance._20250806_112132_0000.pdf
Ryan Daly Gallardo Prod Management PPT .pptx
SM_Behavior Based Safety (BBS)_Unit V.pptx
250816-Risk Evaluation & Mitigation Strategy-CQS.pdf
Operations Management Supply-Chain Management
How to Present a Project Proposal to Stakeholders for Approval?
Self-Awareness and Values Development presentation
The Untold Story of Swami Vijay Kumar Durai: Building PRS International

Pyfest Tunisia 2015 - Python & DevOps

  • 1. Python & DevOps @pyfest 2015 Python & DevOps @pyfest 2015 Python & DevOps @pyfest 2015
  • 2. Ahmed Bessifi @github/abessifi DevOps Engineer @IMDEV - Python, Flask, Puppet, Docker, Jenkins Open source - Author : Pyatta, repmgr-puppet - Contributor : LWP, RQ, PoWA - Member : Debian, openVswitch, metaflask
  • 8. DevOps, what is it for ? - Ensure better development of the application. - Continuous integration and deployment. - Ensure that the application is working as expected (monitoring, high availability, etc).
  • 10. DevOps, how to do it ?
  • 11. What's all the fuss about ?
  • 12. Docker : “... an open platform for developers and sysadmins to build, ship and run distributed applications.” https://www.docker.com/whatisdocker
  • 13. Docker : Concepts Images A read only collection of “layers” joined together via a union File System. Containers An instance of an image on which one or more processes are running or have exited.
  • 14. Docker : Use cases - Development environments - Application deployment - Continuous integration - Continuous delivery - Platform-as-a-Service (PaaS)
  • 15. +
  • 17. Dev Env : Components - OS - System libraries - Python dependencies - Database, cache, etc
  • 18. Dev Env : Problems - Constantly change - Never truly consistent - Miscommunication (Ops vs Devs)
  • 19. Dev Env : Docker ! - Just write a Dockerfile ! - Easy to change and share - 100 % isolated - Always consistent - Production ready
  • 21. Why we write tests ?!
  • 22. Python testing libs/frameworks : ● - Pytest, Nose : Unittesting library (less boilerplate). - Mock : easily create fakes for testing. - WebTest : req/resp testing for WSGI web apps. - Selenium : browser automation (web).
  • 23. Why using CI ? “A CI system improves the productivity of a development team by automating various things.”
  • 24. Jenkins for Python : - Run builds (pytest, tox, etc). - Perform pep8 and Pyflakes checks. - Display xUnit, coverage reports. - Generate and publish docs. - Build python/deb package(s).
  • 27. Thank you ! '' We build software for people who build software '' <Codiak> about.me/abessifi github.com/abessifi