SlideShare a Scribd company logo
Who Am I? 
• Working at Xebia 
• Previously worked with Red Hat as OpenShift Evangelist 
• Software developer with experience in Java, Python, and 
JavaScript 
• Written a book on OpenShift 
http://www.amazon.com/OpenShift-Cookbook-Shekhar- 
Gulati/dp/1783981202/ 
• Active Blogger http://whyjava.wordpress.com/ 
• Twitter: shekhargulati 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
How many of you have worked with any 
PaaS? 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
PaaS is the most developer friendly cloud 
delivery model 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
There are many PaaS providers 
• OpenShift 
• Cloud Foundry 
• Google App Engine 
• Heroku 
• Jelastic 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
What OpenShift Offers 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
What’s in the box? 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
OpenShift in Action 
• Create an account on OpenShift Online 
• It gives you 3 gears(like servers) – each 512 MB RAM 
and 1 GB disk 
• Choose a client 
• Setup your account 
• Create an application 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Flavors of OpenShift 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
What makes OpenShift Different? 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
OpenShift Terminology 
• Node: A virtual or physical machine that acts as 
container host. It provides a multi tenant environment for 
end user applications. 
• Gear: A gear is a secure container that runs inside a 
node and host end user applications. It is constrained by 
RAM, CPU, and Disk space. 
• Cartridge: Adds functionality to a gear like programming 
language, database, etc. 
• Broker: All clients interact with REST API exposed by 
broker. It is responsible for all application management 
activities. 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
What happens behind the scenes? 
• Client makes a REST request 
• Broker receives the request. It parse the request and 
pushes a message on the queue 
• Broker and node talk with each other using ActiveMQ 
• Node with capacity will reply back saying it can host the 
application 
• A gear will be provisioned with the application stack 
• A private Git repository will be created for your 
application 
• Your application DNS will be propagated to the outside 
world 
• Application will be cloned on your local machine 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
PaaS and DevOps Practices 
• Self service of standard development environment 
• Provisioning of the application stack 
• Automated deployment 
• Version control and continuous integration 
• Automated testing 
• Improved collaboration 
• Monitor everything 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
OpenShift Tips and Tricks 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
RHC AutoComplete 
Run the rhc setup --autocomplete command 
Add ~/.openshift/bash_autocomplete to your .bashrc 
or .bash_profile file. 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Working as a Team 
Create a team using rhc create-team command 
Add members to the team using rhc add-member 
command 
A member can have viewer, editor, or admin role 
You can also add members to different domains 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Tracking and rollback deployments 
Configure the application to keep multiple deployments 
rhc configure-app --keep-deployments 5 
Make a change to you application and push it to 
application gear 
You can view list of deployments using rhc deployment-list 
command 
To rollback a deployment use rhc deployment-activate 
command. 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Doing Manual Deployments 
Configure the application to disable auto deployments 
$ rhc configure-app –no-auto-deploy 
Make changes and push to application gear. Changes will 
not be deployed. 
To manually deploy the changes run the 
$ rhc deploy –ref master 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
OpenShift Binary Deployments 
• Create an OpenShift application 
$ rhc create-app app jbosseap --no-git 
• Configure the app for binary deployment 
$ rhc configure-app –no-auto-deploy –deployment-type 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in 
binary 
• Create a directory structure 
$ mkdir –p build-dependencies/.m2 repo/deployments 
dependencies/jbosseap/deployments 
• Create a tar file 
$ tar -czvf --app.tar.gz ./ 
• Deploy the application 
$ rhc deploy –ref app.tar.gz
Using Hot Deployment 
Create a marker file with name hot_deploy in .openshift/ 
markers directory 
Commit and push it to application gear 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Using Continuous Integration 
Server 
1. You can use OpenShift Jenkins cartridge to add CI to 
your application 
2. OpenShift uses Jenkins in master slave topology 
3. You can increase builder timeout 
4. Creating a Jenkins workflow 
5. Using external Jenkins with OpenShift deployer plugin 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Nonscalable to Scalable application 
Create a new application 
$ rhc create-app scalableapp –from-app 
nonscalableapp –scaling 
Look at haproxy.cfg 
Using different balance algorithm 
Disable auto scaling and then using manual scaling to 
trigger scaling events depending on your requirements 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
Thanks 
© Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in

More Related Content

PDF
Developing Great Apps with Apache Cordova
PDF
Continuous integration and delivery for java based web applications
PDF
OpenAPI Generator The Babel Fish of The API World - apidays Live Paris
PDF
DevOps:建造開發維運的跨界之橋 (@ C.C. Agile #37)
PPTX
J1 2015 "Building a Microservice Ecosystem: Some Assembly Still Required"
PPTX
MuleSoft Meetup slides_kualalumpur_19thSept_Undisturbed REST: Achieving Undis...
PDF
JavaOne 2015: 12 Factor App
PPT
A Tour of Swagger for APIs
Developing Great Apps with Apache Cordova
Continuous integration and delivery for java based web applications
OpenAPI Generator The Babel Fish of The API World - apidays Live Paris
DevOps:建造開發維運的跨界之橋 (@ C.C. Agile #37)
J1 2015 "Building a Microservice Ecosystem: Some Assembly Still Required"
MuleSoft Meetup slides_kualalumpur_19thSept_Undisturbed REST: Achieving Undis...
JavaOne 2015: 12 Factor App
A Tour of Swagger for APIs

What's hot (20)

PDF
Java APIs- The missing manual (concurrency)
PPTX
Alfresco DevCon 2018 - Embedding Pentaho dashboards into an Alfresco ADF appl...
PDF
Building the Pipeline of My Dreams
PDF
OpenAPI Generator The Babel Fish of The API World - apidays Live Australia
PDF
Documenting RESTful APIs with Spring REST Docs
PDF
Application Deployment at UC Riverside
PDF
A Journey to Improve Infrastructure Compliance With InSpec
PDF
MuleSoft approach to the integration - Warsaw MuleSoft Meetup
PPTX
Apigee deploy grunt plugin.1.0
PPTX
10 things you need to know to deliver a successful Alfresco project
PDF
Emulators as an Emerging Best Practice for API Providers
PPTX
Jfrog artifactory artifact management c tamilmaran presentation - copy
PPTX
#JavaOne What's in an object?
PDF
Drupal 8 and Pantheon
PPTX
ApacheCon NA 2015 - Gabriele Columbro - Is Open Source the right model in the...
PDF
Transporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Pow...
PDF
Nagpur MuleSoft Meetup Group - Working with API Groups in Mulesoft
PDF
OpenStack Networking: Developing and Delivering a Commercial Solution for Lo...
PPTX
mulesoft meetup @ bangalore
PDF
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Java APIs- The missing manual (concurrency)
Alfresco DevCon 2018 - Embedding Pentaho dashboards into an Alfresco ADF appl...
Building the Pipeline of My Dreams
OpenAPI Generator The Babel Fish of The API World - apidays Live Australia
Documenting RESTful APIs with Spring REST Docs
Application Deployment at UC Riverside
A Journey to Improve Infrastructure Compliance With InSpec
MuleSoft approach to the integration - Warsaw MuleSoft Meetup
Apigee deploy grunt plugin.1.0
10 things you need to know to deliver a successful Alfresco project
Emulators as an Emerging Best Practice for API Providers
Jfrog artifactory artifact management c tamilmaran presentation - copy
#JavaOne What's in an object?
Drupal 8 and Pantheon
ApacheCon NA 2015 - Gabriele Columbro - Is Open Source the right model in the...
Transporting Data at Warp Speed: How to Connect Spring Boot Apps Quickly, Pow...
Nagpur MuleSoft Meetup Group - Working with API Groups in Mulesoft
OpenStack Networking: Developing and Delivering a Commercial Solution for Lo...
mulesoft meetup @ bangalore
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Ad

Viewers also liked (20)

ODP
A Happy Cloud Friendly Java Developer with OpenShift
PPT
Indic threads java10-spring-roo-and-the-cloud
PDF
Developing Modern Java Web Applications with Java EE 7 and AngularJS
PDF
Developing modern java web applications with java ee 7 and angular js
PDF
Bringing spatial love to your python application
PDF
Becoming a professional software developer
ODP
Simple Mobile Development With Ionic - Ondrisek
PDF
Hicss 42 Presentation
PDF
Open shift for java(ee) developers
PDF
Surviving as a Professional Software Developer
PDF
Thinking beyond RDBMS - Building Polyglot Persistence Java Applications Devf...
PPTX
Design Patterns for JavaScript Web Apps - JavaScript Conference 2012 - OPITZ ...
PDF
Java EE 6 and NoSQL Workshop DevFest Austria
PDF
Introduction to Browser DOM
PPTX
AngularJS & Job
PDF
Interacting with the DOM (JavaScript)
PDF
Building spatial back ends with Node.js and MongoDB
PDF
AngularJS in large applications - AE NV
PDF
Real World AngularJS recipes: beyond TodoMVC
PDF
Angularjs interview questions and answers
A Happy Cloud Friendly Java Developer with OpenShift
Indic threads java10-spring-roo-and-the-cloud
Developing Modern Java Web Applications with Java EE 7 and AngularJS
Developing modern java web applications with java ee 7 and angular js
Bringing spatial love to your python application
Becoming a professional software developer
Simple Mobile Development With Ionic - Ondrisek
Hicss 42 Presentation
Open shift for java(ee) developers
Surviving as a Professional Software Developer
Thinking beyond RDBMS - Building Polyglot Persistence Java Applications Devf...
Design Patterns for JavaScript Web Apps - JavaScript Conference 2012 - OPITZ ...
Java EE 6 and NoSQL Workshop DevFest Austria
Introduction to Browser DOM
AngularJS & Job
Interacting with the DOM (JavaScript)
Building spatial back ends with Node.js and MongoDB
AngularJS in large applications - AE NV
Real World AngularJS recipes: beyond TodoMVC
Angularjs interview questions and answers
Ad

Similar to Working effectively with OpenShift (20)

PPTX
Streamlining Deployments in a Large Websphere Environment
PDF
XebiaLabs - Optimizing App Deployment to IBM WebSphere
PDF
Cisco webex zend con2010 presentation
PDF
Cisco webex zend con2010 presentation
PPTX
Agile DevOps Transformation At HUD (AgileDC 2017)
PDF
Introducing Deployit 3.8
PPTX
Habitat Workshop at Velocity London 2017
PPTX
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
PPTX
Neev Open Source Contributions
PDF
HP Helion Webinar #4 - Open stack the magic pill
PDF
Dockerizing An Angular Application Using Git, Jenkins & Docker! | DevOps Tuto...
PPTX
Build APIs in Node.js and Swagger 2.0 with Apigee-127
PPTX
New DevOps for the DBA
PDF
Dissecting and Attacking RMI Frameworks
PDF
To Microservices and Beyond
PDF
OpenStack Glance Project Update
PDF
Building A Self-Documenting Application: A Study in Chef and Compliance
PPTX
How to build a self-documenting application
PDF
Automating and Accelerating Application Deployments to IBM WebSphere without ...
PDF
Cloud Foundry and Microservices: A Mutualistic Symbiotic Relationship
Streamlining Deployments in a Large Websphere Environment
XebiaLabs - Optimizing App Deployment to IBM WebSphere
Cisco webex zend con2010 presentation
Cisco webex zend con2010 presentation
Agile DevOps Transformation At HUD (AgileDC 2017)
Introducing Deployit 3.8
Habitat Workshop at Velocity London 2017
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
Neev Open Source Contributions
HP Helion Webinar #4 - Open stack the magic pill
Dockerizing An Angular Application Using Git, Jenkins & Docker! | DevOps Tuto...
Build APIs in Node.js and Swagger 2.0 with Apigee-127
New DevOps for the DBA
Dissecting and Attacking RMI Frameworks
To Microservices and Beyond
OpenStack Glance Project Update
Building A Self-Documenting Application: A Study in Chef and Compliance
How to build a self-documenting application
Automating and Accelerating Application Deployments to IBM WebSphere without ...
Cloud Foundry and Microservices: A Mutualistic Symbiotic Relationship

Recently uploaded (20)

PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Empathic Computing: Creating Shared Understanding
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
A Presentation on Artificial Intelligence
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Mushroom cultivation and it's methods.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Tartificialntelligence_presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
cloud_computing_Infrastucture_as_cloud_p
Empathic Computing: Creating Shared Understanding
OMC Textile Division Presentation 2021.pptx
NewMind AI Weekly Chronicles - August'25-Week II
A Presentation on Artificial Intelligence
Group 1 Presentation -Planning and Decision Making .pptx
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
SOPHOS-XG Firewall Administrator PPT.pptx
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Mushroom cultivation and it's methods.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Tartificialntelligence_presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation_ Review paper, used for researhc scholars
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Programs and apps: productivity, graphics, security and other tools

Working effectively with OpenShift

  • 1. Who Am I? • Working at Xebia • Previously worked with Red Hat as OpenShift Evangelist • Software developer with experience in Java, Python, and JavaScript • Written a book on OpenShift http://www.amazon.com/OpenShift-Cookbook-Shekhar- Gulati/dp/1783981202/ • Active Blogger http://whyjava.wordpress.com/ • Twitter: shekhargulati © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 2. How many of you have worked with any PaaS? © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 3. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 4. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 5. PaaS is the most developer friendly cloud delivery model © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 6. There are many PaaS providers • OpenShift • Cloud Foundry • Google App Engine • Heroku • Jelastic © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 7. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 8. What OpenShift Offers © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 9. What’s in the box? © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 10. OpenShift in Action • Create an account on OpenShift Online • It gives you 3 gears(like servers) – each 512 MB RAM and 1 GB disk • Choose a client • Setup your account • Create an application © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 11. Flavors of OpenShift © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 12. What makes OpenShift Different? © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 13. OpenShift Terminology • Node: A virtual or physical machine that acts as container host. It provides a multi tenant environment for end user applications. • Gear: A gear is a secure container that runs inside a node and host end user applications. It is constrained by RAM, CPU, and Disk space. • Cartridge: Adds functionality to a gear like programming language, database, etc. • Broker: All clients interact with REST API exposed by broker. It is responsible for all application management activities. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 14. What happens behind the scenes? • Client makes a REST request • Broker receives the request. It parse the request and pushes a message on the queue • Broker and node talk with each other using ActiveMQ • Node with capacity will reply back saying it can host the application • A gear will be provisioned with the application stack • A private Git repository will be created for your application • Your application DNS will be propagated to the outside world • Application will be cloned on your local machine © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 15. PaaS and DevOps Practices • Self service of standard development environment • Provisioning of the application stack • Automated deployment • Version control and continuous integration • Automated testing • Improved collaboration • Monitor everything © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 16. OpenShift Tips and Tricks © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 17. RHC AutoComplete Run the rhc setup --autocomplete command Add ~/.openshift/bash_autocomplete to your .bashrc or .bash_profile file. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 18. Working as a Team Create a team using rhc create-team command Add members to the team using rhc add-member command A member can have viewer, editor, or admin role You can also add members to different domains © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 19. Tracking and rollback deployments Configure the application to keep multiple deployments rhc configure-app --keep-deployments 5 Make a change to you application and push it to application gear You can view list of deployments using rhc deployment-list command To rollback a deployment use rhc deployment-activate command. © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 20. Doing Manual Deployments Configure the application to disable auto deployments $ rhc configure-app –no-auto-deploy Make changes and push to application gear. Changes will not be deployed. To manually deploy the changes run the $ rhc deploy –ref master © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 21. OpenShift Binary Deployments • Create an OpenShift application $ rhc create-app app jbosseap --no-git • Configure the app for binary deployment $ rhc configure-app –no-auto-deploy –deployment-type © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in binary • Create a directory structure $ mkdir –p build-dependencies/.m2 repo/deployments dependencies/jbosseap/deployments • Create a tar file $ tar -czvf --app.tar.gz ./ • Deploy the application $ rhc deploy –ref app.tar.gz
  • 22. Using Hot Deployment Create a marker file with name hot_deploy in .openshift/ markers directory Commit and push it to application gear © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 23. Using Continuous Integration Server 1. You can use OpenShift Jenkins cartridge to add CI to your application 2. OpenShift uses Jenkins in master slave topology 3. You can increase builder timeout 4. Creating a Jenkins workflow 5. Using external Jenkins with OpenShift deployer plugin © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 24. Nonscalable to Scalable application Create a new application $ rhc create-app scalableapp –from-app nonscalableapp –scaling Look at haproxy.cfg Using different balance algorithm Disable auto scaling and then using manual scaling to trigger scaling events depending on your requirements © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in
  • 25. Thanks © Xebia IT Architects Pvt Ltd. 2014. Confidential: Not for Reproduction & Distribution. www.xebia.in