SlideShare a Scribd company logo
An OpenShift Primer
     Get your code into the Cloud!




              Eric D. Schabell                   Codemotion – Rome, Italy
              JBoss Senior Solution Architect    23-24 March 2012
              erics@redhat.com / @ericschabell   www.codemotion.it
Sign up, it's free!
• http://openshift.redhat.com – “Sign
  up and Try it!”


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


• Help?
                                         Promotional Code: CODEMOTION
  – IRC: freenode #openshift
  – Forums:
    http://www.redhat.com/openshift/c
    ommunity/forums
  – Email: openshift at redhat dot com
Codemotion 2012 Rome - An OpenShift Primer
Immersion...
Shift happens?
Never look back...
PaaS?
Why am i DORKING
 with the stack?!
Express
     1.Sign Up
     2.Install Client Tools
     3.Create Domain
     4.Create Application
     5.Deploy Application (GIT)
Sign Up
          http://openshift.redhat.com
Install Client Tools
                                   • The rest (osX,
• Fedora / RHEL                      Ubuntu, Cygwin):
   – openshift.repo                  – gem install rhc
• Move to yum.repos.d                  (json_pure)
  $ sudo mv openshift.repo           – see forums, blogs
  /etc/yum.repos.d

• Install client tools
  $ sudo yum install rubygem-rhc
Create Domain
• Use rhc-create-domain command
   $ rhc-create-domain -n mydomain -l openshiftlogin
• use Express console!
rhc-create-domain

Usage: /usr/bin/rhc-create-domain
Bind a registered rhcloud user to a domain in rhcloud.


 -n|--namespace namespace Namespace for your application(s) (alphanumeric - max 16 chars)
 -l|--rhlogin    rhlogin     Red Hat login (RHN or OpenShift login with OpenShift Express access)
 -p|--password      password       RHLogin password (optional, will prompt)
 -a|--alter                Alter namespace (will change urls) and/or ssh key
 -d|--debug                 Print Debug info
 -h|--help                 Show Usage info
 --config path               Path of alternate config file
 --timeout #                Timeout, in seconds, for connection
Web Administration
Create Application
Configure Application
Ready to code!
Application Details
Why OpenShift? It's you.
Other Options:
 create apps
• Name app and define type
     $ rhc-create-app -a appname -t apptype -l openshiftlogin
     (Node.js, DIY, Jenkins, PHP, Ruby, Python, Perl and most
     important, Java!)
• Add application to local repo
     $ git add .
• Commit changes
     $ git commit -m “Initial app import.”
Deploy to Cloud

• Push the code to
  Express
    $ git push


• Congratulations,
  your app is in the
  cloud!
Codemotion 2012 Rome - An OpenShift Primer
Demo Codemotion Mobile App
$ rhc-create-app -a codemotion -t jbossas-7
$ cd codemotion
$ git remote add upstream -m master
git://github.com/eschabell/kitchensink-html5-mobile-
example.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://codemotion-$your_domain.rhcloud.com
JBoss Developer Studio
Codemotion 2012 Rome - An OpenShift Primer
JBDS in action...
Remove Application
Time for a new project!
What will the future bring?
   Express / Flex unification

   JBoss++

   Commercial Service / Pricing

   Mobile
                                  2012
   Open Source (SDK + project)
Loving your hammer?
• OpenShift: http://openshift.redhat.com
• OpenShift Express: https://openshift.redhat.com/app/express
• Blogs: https://www.redhat.com/openshift/community/blogs
• JBPM Web Designer in the Cloud (example):
   http://www.schabell.org/2011/10/jbpm-web-designer-integrates-jbpm.html
• Deploy an application to OpenShift with JBossTools (video):
   http://vimeo.com/33988381
• Deploying mobile application with JBoss Dev Studio:
   https://community.jboss.org/wiki/DeployingHTML5ApplicationsToOpenshift
• Rise above the Cloud hype with OpenShift:
   http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html

More Related Content

PDF
OpenShift Primer - get your business into the Cloud today!
PDF
NLUUG Spring 2012 - OpenShift Primer
PDF
Puppet at GitHub
PDF
Introduction to GitHub Actions
PDF
Containers: Under The Hood (Vincent Batts)
PDF
Workshop - Golang language
PDF
The rise of Docker, and the future of computing
PPTX
Wonders of Golang
OpenShift Primer - get your business into the Cloud today!
NLUUG Spring 2012 - OpenShift Primer
Puppet at GitHub
Introduction to GitHub Actions
Containers: Under The Hood (Vincent Batts)
Workshop - Golang language
The rise of Docker, and the future of computing
Wonders of Golang

What's hot (20)

PDF
CDK 2.0: Docker, Kubernetes, And OSE On Your Desk (Langdon White)
PDF
Intro to Github Actions @likecoin
PPTX
Meetup #24 Docker for Node Developer
PDF
Introduction to GitHub Actions
PDF
Golang from Scala developer’s perspective
PDF
Automate CI/CD with Rancher
PDF
Docker workshop
ODP
Boston Ruby Group - Devops Pipeline
PDF
Git 101: Git and GitHub for Beginners
PDF
[Szjug] Docker. Does it matter for java developer?
PDF
Kubeflow Development Environment
PPTX
drone continuous Integration
PPTX
Git Obstacle Course: Stop BASHing your head and break down the basics
PDF
"Workstation Up" - Docker Development at Flow by Mike Roth
ODP
Our ATLRUG.com Web Site
PDF
Agile NCR 2013- Shekhar Gulati - Open shift platform-for-rapid-and-agile-deve...
PDF
Docker Barcelona Meetup - An Introduction to BuildKit
PDF
GoLang Introduction
PPTX
Using deploy in drupal 8
PDF
Inroduction to golang
CDK 2.0: Docker, Kubernetes, And OSE On Your Desk (Langdon White)
Intro to Github Actions @likecoin
Meetup #24 Docker for Node Developer
Introduction to GitHub Actions
Golang from Scala developer’s perspective
Automate CI/CD with Rancher
Docker workshop
Boston Ruby Group - Devops Pipeline
Git 101: Git and GitHub for Beginners
[Szjug] Docker. Does it matter for java developer?
Kubeflow Development Environment
drone continuous Integration
Git Obstacle Course: Stop BASHing your head and break down the basics
"Workstation Up" - Docker Development at Flow by Mike Roth
Our ATLRUG.com Web Site
Agile NCR 2013- Shekhar Gulati - Open shift platform-for-rapid-and-agile-deve...
Docker Barcelona Meetup - An Introduction to BuildKit
GoLang Introduction
Using deploy in drupal 8
Inroduction to golang
Ad

Similar to Codemotion 2012 Rome - An OpenShift Primer (20)

ODP
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
PDF
OpenShift State of the Union, brought to you by JBoss
PPTX
Free Mongo on OpenShift
PDF
Open shift
ODP
Red Hat Developer Day London: Advanced Java & JBoss in the Cloud
ODP
JBUG Netherlands Openshift Primer
PPTX
OpenShift with Eclipse Tooling - EclipseCon 2012
PDF
Openshift: Deployments for the rest of us
PDF
Open shift intro for Philly PUG
PPTX
Accelerating Application Delivery with OpenShift
PDF
Rodando *qualquer coisa* na nuvem com OpenShift, o PaaS open source da Red Hat
PPT
OpenShift Origin: Build a PaaS Just Like Red Hats
PPTX
Server deployment
ODP
From Code to Cloud - PHP on Red Hat's OpenShift
PDF
Openshift Enterprise
PDF
Openshift cheat rhce_r3v1 rhce
PDF
Using OpenShift PaaS
ODP
Joomla in the cloud with Openshift
ODP
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
PPT
Workshop For pycon13
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
OpenShift State of the Union, brought to you by JBoss
Free Mongo on OpenShift
Open shift
Red Hat Developer Day London: Advanced Java & JBoss in the Cloud
JBUG Netherlands Openshift Primer
OpenShift with Eclipse Tooling - EclipseCon 2012
Openshift: Deployments for the rest of us
Open shift intro for Philly PUG
Accelerating Application Delivery with OpenShift
Rodando *qualquer coisa* na nuvem com OpenShift, o PaaS open source da Red Hat
OpenShift Origin: Build a PaaS Just Like Red Hats
Server deployment
From Code to Cloud - PHP on Red Hat's OpenShift
Openshift Enterprise
Openshift cheat rhce_r3v1 rhce
Using OpenShift PaaS
Joomla in the cloud with Openshift
OpenShift PaaS Anywhere (Infrastructure.Next Ghent 2014-02-24) Diane Mueller
Workshop For pycon13
Ad

More from Eric D. Schabell (20)

PPTX
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
PPTX
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
PPTX
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
PPTX
Observability-as-a-Service: When Platform Engineers meet SREs
PPTX
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
PPTX
When Platform Engineers meet SREs - The Birth of O11y-as-a-Service Superpowers
PPTX
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
PPTX
Taking Back Control of Your Telemetry Data with Fluent Bit
PPTX
Finding observability and DevEx tranquility sailing the monitoring data seas
PDF
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
PPTX
MTTS - Sleep more, slog less with automated cloud native o11y platforms
PPTX
KCD Porto: Choose Your Own Adventure - Cloud Naive Observability Pitfalls
PPTX
Infobip Shift EU 2024: Platform Engineers Arise - Adding Observability to You...
PPTX
PromCon EU 2024: Meet the New Kid in the Sandbox - Integrating Visualization ...
PPTX
Taking Back Control of Your Telemetry Data with Fluent Bit
PDF
Observability For You and Me with OpenTelemetry
PPTX
Power Up with Podman - Cloud Native + K8s Meetup
PPTX
Choose Your Own Adventure - Cloud Native Observability Pitfalls
PPTX
Choose Your Own Observability Adventure
PPTX
Checking the pulse of your cloud native architecture
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Observability-as-a-Service: When Platform Engineers meet SREs
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
When Platform Engineers meet SREs - The Birth of O11y-as-a-Service Superpowers
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
Taking Back Control of Your Telemetry Data with Fluent Bit
Finding observability and DevEx tranquility sailing the monitoring data seas
Meet the New Kid in the Sandbox - Integrating Visualization with Prometheus
MTTS - Sleep more, slog less with automated cloud native o11y platforms
KCD Porto: Choose Your Own Adventure - Cloud Naive Observability Pitfalls
Infobip Shift EU 2024: Platform Engineers Arise - Adding Observability to You...
PromCon EU 2024: Meet the New Kid in the Sandbox - Integrating Visualization ...
Taking Back Control of Your Telemetry Data with Fluent Bit
Observability For You and Me with OpenTelemetry
Power Up with Podman - Cloud Native + K8s Meetup
Choose Your Own Adventure - Cloud Native Observability Pitfalls
Choose Your Own Observability Adventure
Checking the pulse of your cloud native architecture

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Cloud computing and distributed systems.
PPTX
Big Data Technologies - Introduction.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPT
Teaching material agriculture food technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Review of recent advances in non-invasive hemoglobin estimation
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Cloud computing and distributed systems.
Big Data Technologies - Introduction.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Teaching material agriculture food technology
Understanding_Digital_Forensics_Presentation.pptx
Programs and apps: productivity, graphics, security and other tools
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Network Security Unit 5.pdf for BCA BBA.

Codemotion 2012 Rome - An OpenShift Primer

  • 1. An OpenShift Primer Get your code into the Cloud! Eric D. Schabell Codemotion – Rome, Italy JBoss Senior Solution Architect 23-24 March 2012 erics@redhat.com / @ericschabell www.codemotion.it
  • 2. Sign up, it's free! • http://openshift.redhat.com – “Sign up and Try it!” • Example projects you can deploy now! – https://www.github.com/openshift • Help? Promotional Code: CODEMOTION – IRC: freenode #openshift – Forums: http://www.redhat.com/openshift/c ommunity/forums – Email: openshift at redhat dot com
  • 7. Why am i DORKING with the stack?!
  • 8. Express 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT)
  • 9. Sign Up http://openshift.redhat.com
  • 10. Install Client Tools • The rest (osX, • Fedora / RHEL Ubuntu, Cygwin): – openshift.repo – gem install rhc • Move to yum.repos.d (json_pure) $ sudo mv openshift.repo – see forums, blogs /etc/yum.repos.d • Install client tools $ sudo yum install rubygem-rhc
  • 11. Create Domain • Use rhc-create-domain command $ rhc-create-domain -n mydomain -l openshiftlogin • use Express console!
  • 12. rhc-create-domain Usage: /usr/bin/rhc-create-domain Bind a registered rhcloud user to a domain in rhcloud. -n|--namespace namespace Namespace for your application(s) (alphanumeric - max 16 chars) -l|--rhlogin rhlogin Red Hat login (RHN or OpenShift login with OpenShift Express access) -p|--password password RHLogin password (optional, will prompt) -a|--alter Alter namespace (will change urls) and/or ssh key -d|--debug Print Debug info -h|--help Show Usage info --config path Path of alternate config file --timeout # Timeout, in seconds, for connection
  • 19. Other Options: create apps • Name app and define type $ rhc-create-app -a appname -t apptype -l openshiftlogin (Node.js, DIY, Jenkins, PHP, Ruby, Python, Perl and most important, Java!) • Add application to local repo $ git add . • Commit changes $ git commit -m “Initial app import.”
  • 20. Deploy to Cloud • Push the code to Express $ git push • Congratulations, your app is in the cloud!
  • 22. Demo Codemotion Mobile App $ rhc-create-app -a codemotion -t jbossas-7 $ cd codemotion $ git remote add upstream -m master git://github.com/eschabell/kitchensink-html5-mobile- example.git $ git pull -s recursive -X theirs upstream master $ git push http://codemotion-$your_domain.rhcloud.com
  • 27. Time for a new project!
  • 28. What will the future bring? Express / Flex unification JBoss++ Commercial Service / Pricing Mobile 2012 Open Source (SDK + project)
  • 30. • OpenShift: http://openshift.redhat.com • OpenShift Express: https://openshift.redhat.com/app/express • Blogs: https://www.redhat.com/openshift/community/blogs • JBPM Web Designer in the Cloud (example): http://www.schabell.org/2011/10/jbpm-web-designer-integrates-jbpm.html • Deploy an application to OpenShift with JBossTools (video): http://vimeo.com/33988381 • Deploying mobile application with JBoss Dev Studio: https://community.jboss.org/wiki/DeployingHTML5ApplicationsToOpenshift • Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html