SlideShare a Scribd company logo
1 of 25
Download to read offline
An OpenShift Primer
     Get your code into the Cloud!




           Eric D. Schabell
           JBoss Senior Solution Architect
                        Eric D. Schabell | erics@redhat.com | @ericschabell
Eric D. Schabell | erics@redhat.com | @ericschabell
Immersion...
Shift happens?




                 Eric D. Schabell | erics@redhat.com | @ericschabell
Never look back...
    Eric D. Schabell | erics@redhat.com | @ericschabell
Eric D. Schabell | erics@redhat.com | @ericschabell
PaaS?

   Eric D. Schabell | erics@redhat.com | @ericschabell
Why am i DORKING
 with the stack?!




   Eric D. Schabell | erics@redhat.com | @ericschabell
Eric D. Schabell | erics@redhat.com | @ericschabell
OpenShift Express
          1.Sign Up
          2.Install Client Tools
          3.Create Domain
          4.Create Application
          5.Deploy Application (GIT)

                    Eric D. Schabell | erics@redhat.com | @ericschabell
Sign Up
          http://openshift.com/try-it




                Eric D. Schabell | erics@redhat.com | @ericschabell
Install Client Tools

• Fedora / RHEL                    • The rest (osX,
   – openshift.repo                  Ubuntu, Cygwin):
• Move to yum.repos.d                – gem install rhc
  $ sudo mv openshift.repo           – see forums, blogs
  /etc/yum.repos.d

• Install client tools
  $ sudo yum install rubygem-rhc




                                      Eric D. Schabell | erics@redhat.com | @ericschabell
Create Domain
• Use rhc-create-domain command
   $ rhc-create-domain -n mydomain -l openshiftlogin
• use Express console!




                                 Eric D. Schabell | erics@redhat.com | @ericschabell
Create Application
• Name application and define type
    $ rhc-create-app -a appname -t apptype -l openshiftlogin
                  (Java, Ruby, Python, Perl and most important, PHP!)


• Add application to local repo
    $ git add .


• Commit changes
    $ git commit -m “Initial app import.”
                                        Eric D. Schabell | erics@redhat.com | @ericschabell
Deploy to Cloud
• Push the code to
  Express
    $ git push


• Congratulations,
  your app is in the
  cloud!


                       Eric D. Schabell | erics@redhat.com | @ericschabell
Eric D. Schabell | erics@redhat.com | @ericschabell
Demo BPM Web Designer
$ rhc-create-app -a editor -t jbossas-7.0
$ cd editor
$ git remote add upstream -m master
git://github.com/eschabell/openshift-webdesigner-
jbpmmigration.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://editor-$your_domain.rhcloud.com
                              Eric D. Schabell | erics@redhat.com | @ericschabell
Auto
                                                    Scaling
Enterprise     Speed      Deployment


Flexibility?        Provisioning               Monitoring

                           Automation Log Mgmt
                                    Roll-backs,
                                    Upgrades
                                          Databases




                   Eric D. Schabell | erics@redhat.com | @ericschabell
OpenShift Flex
1.Setup Cloud Account
2.Provision Cloud Servers
3.Build Stack
4.Upload Application Code
5.Configure Components
6.Deploy
7.Performance Monitoring
8.Log Management
9.Auto-Scaling
                            Eric D. Schabell | erics@redhat.com | @ericschabell
Login




        Creds




                Eric D. Schabell | erics@redhat.com | @ericschabell
Deploy
                             Application
Name                   App

Version




          Components




                             Eric D. Schabell | erics@redhat.com | @ericschabell
Deploy code



                                   Congrat's,
                                   you're in
                                   the Cloud!




              Eric D. Schabell | erics@redhat.com | @ericschabell
Performance & Logs
                                  Point-in-time



 Trans levels




Search



Applications




Components

                              Eric D. Schabell | erics@redhat.com | @ericschabell
Define Scaling Strategy


How?



What?




Why?




               Eric D. Schabell | erics@redhat.com | @ericschabell
Sign up, it's free!
• http://www.openshift.com – click “Try it!”


• Example projects you can deploy now!
  – https://www.github.com/openshift


• Help?
  – IRC: freenode #openshift
  – Forums: http://www.redhat.com/openshift/forums
  – Email: openshift at redhat dot com

                                  Eric D. Schabell | erics@redhat.com | @ericschabell
Loving your hammer?




                      Eric D. Schabell | erics@redhat.com | @ericschabell

More Related Content

More from Eric D. Schabell

Cloud Native Bedtime Stories - Terrifying Execs into Action
Cloud Native Bedtime Stories - Terrifying Execs into ActionCloud Native Bedtime Stories - Terrifying Execs into Action
Cloud Native Bedtime Stories - Terrifying Execs into Action
Eric D. Schabell
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
Eric D. Schabell
 
Open Source 101 - Observability For You and Me with OpenTelemetry
Open Source 101 - Observability For You and Me with OpenTelemetryOpen Source 101 - Observability For You and Me with OpenTelemetry
Open Source 101 - Observability For You and Me with OpenTelemetry
Eric D. Schabell
 

More from Eric D. Schabell (20)

3 Pitfalls Everyone Should Avoid with Cloud Native Observability
3 Pitfalls Everyone Should Avoid with Cloud Native Observability3 Pitfalls Everyone Should Avoid with Cloud Native Observability
3 Pitfalls Everyone Should Avoid with Cloud Native Observability
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
 
Roadmap to Becoming a CNCF Ambassador
Roadmap to Becoming a CNCF AmbassadorRoadmap to Becoming a CNCF Ambassador
Roadmap to Becoming a CNCF Ambassador
 
Cloud Native Bedtime Stories - Terrifying Execs into Action
Cloud Native Bedtime Stories - Terrifying Execs into ActionCloud Native Bedtime Stories - Terrifying Execs into Action
Cloud Native Bedtime Stories - Terrifying Execs into Action
 
SRECon EU 2023 - Three Phases to Better Observability Outcomes
SRECon EU 2023 - Three Phases to Better Observability OutcomesSRECon EU 2023 - Three Phases to Better Observability Outcomes
SRECon EU 2023 - Three Phases to Better Observability Outcomes
 
Optimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsOptimizing Observability Spend: Metrics
Optimizing Observability Spend: Metrics
 
Engaging Your Execs - Telling Great Observability Tales Inspiring Action
Engaging Your Execs - Telling Great Observability Tales Inspiring ActionEngaging Your Execs - Telling Great Observability Tales Inspiring Action
Engaging Your Execs - Telling Great Observability Tales Inspiring Action
 
WTF is SRE - Telling Effective Tales about Production
WTF is SRE - Telling Effective Tales about ProductionWTF is SRE - Telling Effective Tales about Production
WTF is SRE - Telling Effective Tales about Production
 
Optimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsOptimizing Observability Spend: Metrics
Optimizing Observability Spend: Metrics
 
Observability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetryObservability For You and Me with OpenTelemetry
Observability For You and Me with OpenTelemetry
 
Open Source 101 - Observability For You and Me with OpenTelemetry
Open Source 101 - Observability For You and Me with OpenTelemetryOpen Source 101 - Observability For You and Me with OpenTelemetry
Open Source 101 - Observability For You and Me with OpenTelemetry
 
3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud Data3 Pitfalls Everyone Should Avoid with Cloud Data
3 Pitfalls Everyone Should Avoid with Cloud Data
 
3 Pitfalls Everyone Should Avoid with Cloud Native Data
3 Pitfalls Everyone Should Avoid with Cloud Native Data3 Pitfalls Everyone Should Avoid with Cloud Native Data
3 Pitfalls Everyone Should Avoid with Cloud Native Data
 
DZone webinar - Shift left Observability
DZone webinar - Shift left ObservabilityDZone webinar - Shift left Observability
DZone webinar - Shift left Observability
 
Storytelling - How to build and delivery a story
Storytelling - How to build and delivery a storyStorytelling - How to build and delivery a story
Storytelling - How to build and delivery a story
 
Shift left Observability
Shift left ObservabilityShift left Observability
Shift left Observability
 
Trajectory 2022 - Shifting Cloud Native Observability to the Left
Trajectory 2022 - Shifting Cloud Native Observability to the LeftTrajectory 2022 - Shifting Cloud Native Observability to the Left
Trajectory 2022 - Shifting Cloud Native Observability to the Left
 
PromCon EU 2022 - Centralized vs Decentralized Prometheus Scraping Architectu...
PromCon EU 2022 - Centralized vs Decentralized Prometheus Scraping Architectu...PromCon EU 2022 - Centralized vs Decentralized Prometheus Scraping Architectu...
PromCon EU 2022 - Centralized vs Decentralized Prometheus Scraping Architectu...
 
How to Wrestle Your Observability Data Demons and Win!
How to Wrestle Your Observability Data Demons and Win!How to Wrestle Your Observability Data Demons and Win!
How to Wrestle Your Observability Data Demons and Win!
 
DevConf.US 2022 - Exploring Open Source Edge Success at Scale
DevConf.US 2022 - Exploring Open Source Edge Success at ScaleDevConf.US 2022 - Exploring Open Source Edge Success at Scale
DevConf.US 2022 - Exploring Open Source Edge Success at Scale
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 

OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

  • 1. An OpenShift Primer Get your code into the Cloud! Eric D. Schabell JBoss Senior Solution Architect Eric D. Schabell | erics@redhat.com | @ericschabell
  • 2. Eric D. Schabell | erics@redhat.com | @ericschabell
  • 3. Immersion... Shift happens? Eric D. Schabell | erics@redhat.com | @ericschabell
  • 4. Never look back... Eric D. Schabell | erics@redhat.com | @ericschabell
  • 5. Eric D. Schabell | erics@redhat.com | @ericschabell
  • 6. PaaS? Eric D. Schabell | erics@redhat.com | @ericschabell
  • 7. Why am i DORKING with the stack?! Eric D. Schabell | erics@redhat.com | @ericschabell
  • 8. Eric D. Schabell | erics@redhat.com | @ericschabell
  • 9. OpenShift Express 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT) Eric D. Schabell | erics@redhat.com | @ericschabell
  • 10. Sign Up http://openshift.com/try-it Eric D. Schabell | erics@redhat.com | @ericschabell
  • 11. Install Client Tools • Fedora / RHEL • The rest (osX, – openshift.repo Ubuntu, Cygwin): • Move to yum.repos.d – gem install rhc $ sudo mv openshift.repo – see forums, blogs /etc/yum.repos.d • Install client tools $ sudo yum install rubygem-rhc Eric D. Schabell | erics@redhat.com | @ericschabell
  • 12. Create Domain • Use rhc-create-domain command $ rhc-create-domain -n mydomain -l openshiftlogin • use Express console! Eric D. Schabell | erics@redhat.com | @ericschabell
  • 13. Create Application • Name application and define type $ rhc-create-app -a appname -t apptype -l openshiftlogin (Java, Ruby, Python, Perl and most important, PHP!) • Add application to local repo $ git add . • Commit changes $ git commit -m “Initial app import.” Eric D. Schabell | erics@redhat.com | @ericschabell
  • 14. Deploy to Cloud • Push the code to Express $ git push • Congratulations, your app is in the cloud! Eric D. Schabell | erics@redhat.com | @ericschabell
  • 15. Eric D. Schabell | erics@redhat.com | @ericschabell
  • 16. Demo BPM Web Designer $ rhc-create-app -a editor -t jbossas-7.0 $ cd editor $ git remote add upstream -m master git://github.com/eschabell/openshift-webdesigner- jbpmmigration.git $ git pull -s recursive -X theirs upstream master $ git push http://editor-$your_domain.rhcloud.com Eric D. Schabell | erics@redhat.com | @ericschabell
  • 17. Auto Scaling Enterprise Speed Deployment Flexibility? Provisioning Monitoring Automation Log Mgmt Roll-backs, Upgrades Databases Eric D. Schabell | erics@redhat.com | @ericschabell
  • 18. OpenShift Flex 1.Setup Cloud Account 2.Provision Cloud Servers 3.Build Stack 4.Upload Application Code 5.Configure Components 6.Deploy 7.Performance Monitoring 8.Log Management 9.Auto-Scaling Eric D. Schabell | erics@redhat.com | @ericschabell
  • 19. Login Creds Eric D. Schabell | erics@redhat.com | @ericschabell
  • 20. Deploy Application Name App Version Components Eric D. Schabell | erics@redhat.com | @ericschabell
  • 21. Deploy code Congrat's, you're in the Cloud! Eric D. Schabell | erics@redhat.com | @ericschabell
  • 22. Performance & Logs Point-in-time Trans levels Search Applications Components Eric D. Schabell | erics@redhat.com | @ericschabell
  • 23. Define Scaling Strategy How? What? Why? Eric D. Schabell | erics@redhat.com | @ericschabell
  • 24. Sign up, it's free! • http://www.openshift.com – click “Try it!” • Example projects you can deploy now! – https://www.github.com/openshift • Help? – IRC: freenode #openshift – Forums: http://www.redhat.com/openshift/forums – Email: openshift at redhat dot com Eric D. Schabell | erics@redhat.com | @ericschabell
  • 25. Loving your hammer? Eric D. Schabell | erics@redhat.com | @ericschabell