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

Recently uploaded (20)

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...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

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