SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
OpenShift Primer
             Get your code into the Cloud!




Eric D. Schabell
JBoss Technology Evangelist
http://www.schabell.org

12 Dec 2012, JBUG Netherlands
 Eric D. Schabell / @ericschabell / erics@redhat.com
First things first, sign up!

 http://openshift.redhat.com




                                                        Promotional Code: JBUGNL




  Eric D. Schabell / @ericschabell / erics@redhat.com
OpenShift, a little history

   ●   Nov 2010 – Makara acquired
   ●   In 2011 – merged into OpenShift project
   ●   May 2012 – Open Sourced OpenShift
                ●   LiveCD launched for local PaaS
                ●   GitHub code base
                ●   Activity: blogs, howto's, quickstarts, webinars
   ●   June 2012 – JBoss World, OpenShift Enterprise
       PaaS announced.



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




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




Eric D. Schabell / @ericschabell / erics@redhat.com
Quickstart

                                          1.Sign Up
                                          2.Install Client Tools
                                          3.Create Domain
                                          4.Create Application
                                          5.Deploy Application (GIT)




Eric D. Schabell / @ericschabell / erics@redhat.com
http://openshift.redhat.com –
          “Sign up and Try it!”


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


●   Help?
      ●   IRC: freenode #openshift
                                                          Promotional Code: JBUGNL
      ●   Forums:
          http://www.redhat.com/opens
          hift/community/forums
      ●   Email: openshift at redhat dot
          com



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

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

●   Install client tools
    $ sudo yum install rubygem-rhc




    Eric D. Schabell / @ericschabell / erics@redhat.com
Create Domain

●   Use rhc command
         $ rhc domain create -n mydomain -l openshiftlogin
●   Use admin console!




Eric D. Schabell / @ericschabell / erics@redhat.com
Web Administration




Eric D. Schabell / @ericschabell / erics@redhat.com
Browse tags




Eric D. Schabell / @ericschabell / erics@redhat.com
Eric D. Schabell / @ericschabell / erics@redhat.com
Eric D. Schabell / @ericschabell / erics@redhat.com
Create




Eric D. Schabell / @ericschabell / erics@redhat.com
Configure




Eric D. Schabell / @ericschabell / erics@redhat.com
Ready to code!




Eric D. Schabell / @ericschabell / erics@redhat.com
Application Details




  Eric D. Schabell / @ericschabell / erics@redhat.com
Other Options

●   Name app and define type
       $ rhc app create -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.”




    Eric D. Schabell / @ericschabell / erics@redhat.com
Deploy to Cloud


●   Push the code to
    Express
           $ git push

●   Congratulations, your
    app is in the cloud!




    Eric D. Schabell / @ericschabell / erics@redhat.com
Eric D. Schabell / @ericschabell / erics@redhat.com
Gears




                                                  500MB memory + 1GB storage
Eric D. Schabell / @ericschabell / erics@redhat.com
JBoss Developer Studio




Eric D. Schabell / @ericschabell / erics@redhat.com
Tips & Tricks – no more passwords
●   One way:
        ●   save your password in .openshift/pass.txt
        ●   chmod 600 .openshift/pass.txt
        ●   rhc domain show -p `cat .openshift/pass.txt`

●   Better:
        ●   add function to .bashrc or .bash_profile
    function rhc() {
        `which rhc` "$@" -p "`cat ~/.openshift/.pass.txt`"
        # You can also specify -l $login if needed.
    }


Eric D. Schabell / @ericschabell / erics@redhat.com
Tips & Tricks – hot deployments


●   Works for JBoss AS 7, PHP and Ruby (for now)
      ●   add marker file:


          touch .openshift/markers/hot_deploy



          * note – still have to live inside memory footprint,
          maybe use Jenkins?




Eric D. Schabell / @ericschabell / erics@redhat.com
Demo DevDayUK Mobile App



$ rhc app create -a devdayuk -t jbosseap-6.0
$ cd devdayuk
$ git remote add upstream -m master
git://github.com/eschabell/openshift-devdayuk.git
$ git pull -s recursive -X theirs upstream master
$ git push


http://devdayuk-$your_domain.rhcloud.com



Eric D. Schabell / @ericschabell / erics@redhat.com
Demo jBPM Web Designer


$ rhc app create -a editor -t jbossas-7
$ 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/designer/editor?profile=jbpm&uuid=123


Eric D. Schabell / @ericschabell / erics@redhat.com
Demo jBPM Migration Project

$ rhc app create -a jbpmmigration -t jbossas-7
$ cd jbpmmigration
$ git remote add upstream -m master
git://github.com/eschabell/openshift-jbpmmigration.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://jbpmmigration-$your_domain.rhcloud.com/jbpmmigration_upload-0.4




Eric D. Schabell / @ericschabell / erics@redhat.com
Demo Switchyard Project

$ rhc app create -a swyesb -t jbossas-7
$ cd swyesb
$ git remote add upstream -m master
git://github.com/eschabell/switchyard-openshift.git
$ git pull -s recursive -X theirs upstream master
$ git push



http://swyesb-$your_domain.rhcloud.com/switchyard-quickstart-demo-orders




Eric D. Schabell / @ericschabell / erics@redhat.com
Demo Ceylon Project



$ rhc app create -a ceylon -t jbossas-7
$ cd ceylon
$ git remote add upstream -m master
git://github.com/eschabell/ceylon-openshift.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://ceylon-$your_domain.rhcloud.com



Eric D. Schabell / @ericschabell / erics@redhat.com
Demo GateIn Project


$ rhc app create -a portal -t jbossas-7
$ cd portal
$ git remote add upstream -m master
git://github.com/eschabell/openshift-portal.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://portal-$your_domain.rhcloud.com/portal



Eric D. Schabell / @ericschabell / erics@redhat.com
Demo Drools Planner


$ rhc app create -a droolsplanner -t jbosseap-6.0
$ cd droolsplanner
$ git remote add upstream -m master
git://github.com/eschabell/openshift-droolsplanner.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://droolsplanner-$your_domain.rhcloud.com/droolsplanner




Eric D. Schabell / @ericschabell / erics@redhat.com
Demo JBoss BRMS 5.3*


$ rhc app create -a brms53 -t jbossas-7
$ cd brms53
$ git remote add upstream -m master
git://github.com/eschabell/openshift-brms53.git
$ git pull -s recursive -X theirs upstream master
$ git push




http://brms53-$your_domain.rhcloud.com:8080/jboss-brms

Eric D. Schabell / @ericschabell / erics@redhat.com
Loving your hammers?




Eric D. Schabell / @ericschabell / erics@redhat.com
●   OpenShift: http://openshift.redhat.com
●   OpenShift Enterprise PaaS FAQ:
    http://www.redhat.com/resourcelibrary/datasheets/openshift-enterprise-paas-solution
●   Blogs: https://www.redhat.com/openshift/community/blogs
●   Repository for all OpenShift demos shown here:
    https://github.com/eschabell
●   OpenShift demo repository: https://github.com/openshift
●   Rise above the Cloud hype with OpenShift:
    http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html
●   OpenShift Primer (e-book)
    http://www.schabell.org/2012/12/openshift-primer-book-published-amazon-ibooks.html
Eric D. Schabell / @ericschabell / erics@redhat.com

Weitere ähnliche Inhalte

Andere mochten auch

Emmies 2013 - GroupM Monthly Digital Challenge
Emmies 2013 - GroupM Monthly Digital ChallengeEmmies 2013 - GroupM Monthly Digital Challenge
Emmies 2013 - GroupM Monthly Digital Challengeyangchinglee
 
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītāju
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītājuJocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītāju
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītājuLimbažu Galvenā bibliotēka
 
Myanmar Business Today - Vol 2, Issue 16
Myanmar Business Today - Vol 2, Issue 16Myanmar Business Today - Vol 2, Issue 16
Myanmar Business Today - Vol 2, Issue 16Myanmar Business Today
 
Curso Preparación Física Pádel
Curso Preparación Física PádelCurso Preparación Física Pádel
Curso Preparación Física Pádelaltorendimientocom
 
Internet de las cosas y protección de los consumidores orientada a procesos M2M
Internet de las cosas y protección de los consumidores orientada a procesos M2MInternet de las cosas y protección de los consumidores orientada a procesos M2M
Internet de las cosas y protección de los consumidores orientada a procesos M2MJose Manuel Pérez Marzabal
 
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User Guide
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User GuideM.G.Goman, A.V.Khramtsovsky (1993) - KRIT User Guide
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User GuideProject KRIT
 
RDFS with Attribute Equations via SPARQL Rewriting
RDFS with Attribute Equations via SPARQL RewritingRDFS with Attribute Equations via SPARQL Rewriting
RDFS with Attribute Equations via SPARQL RewritingStefan Bischof
 
Sử dụng windows XP
Sử dụng windows XPSử dụng windows XP
Sử dụng windows XPNguyễn Anh
 
Matriculacions i transferències 1r trimestre 2012. GREMI DEL MOTOR
Matriculacions i  transferències 1r trimestre 2012. GREMI DEL MOTORMatriculacions i  transferències 1r trimestre 2012. GREMI DEL MOTOR
Matriculacions i transferències 1r trimestre 2012. GREMI DEL MOTORGremi del Motor
 
Renacimientoquattrocenttoarquitectura
RenacimientoquattrocenttoarquitecturaRenacimientoquattrocenttoarquitectura
RenacimientoquattrocenttoarquitecturaFina Martinez
 
TIC para Estudiantes con Necesidades Especiales.
TIC para Estudiantes con Necesidades Especiales.TIC para Estudiantes con Necesidades Especiales.
TIC para Estudiantes con Necesidades Especiales.Juana Alvarez
 
Data Security Using Elliptic Curve Cryptography
Data Security Using Elliptic Curve CryptographyData Security Using Elliptic Curve Cryptography
Data Security Using Elliptic Curve CryptographyIJCERT
 
Surfdog Action Sports
Surfdog Action SportsSurfdog Action Sports
Surfdog Action SportsAndrew Kirwin
 
MailUp - Sistema Professionale di Email Marketing via web
MailUp - Sistema Professionale di Email Marketing via webMailUp - Sistema Professionale di Email Marketing via web
MailUp - Sistema Professionale di Email Marketing via webLuca Azzali
 
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.o
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.oBodas de sangre_primer_y_segundo_curso_de_la_e.s.o
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.omargala6
 
La importancia de fomentar Resiliencia
La importancia de fomentar ResilienciaLa importancia de fomentar Resiliencia
La importancia de fomentar Resilienciaccarcamo
 
Final project tata indicom
Final project tata indicomFinal project tata indicom
Final project tata indicomcantseeimage
 

Andere mochten auch (20)

Emmies 2013 - GroupM Monthly Digital Challenge
Emmies 2013 - GroupM Monthly Digital ChallengeEmmies 2013 - GroupM Monthly Digital Challenge
Emmies 2013 - GroupM Monthly Digital Challenge
 
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītāju
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītājuJocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītāju
Jocīgās dzejas dienas jeb kā Filips Sestais kļuva par lasītāju
 
Myanmar Business Today - Vol 2, Issue 16
Myanmar Business Today - Vol 2, Issue 16Myanmar Business Today - Vol 2, Issue 16
Myanmar Business Today - Vol 2, Issue 16
 
Curso Preparación Física Pádel
Curso Preparación Física PádelCurso Preparación Física Pádel
Curso Preparación Física Pádel
 
Internet de las cosas y protección de los consumidores orientada a procesos M2M
Internet de las cosas y protección de los consumidores orientada a procesos M2MInternet de las cosas y protección de los consumidores orientada a procesos M2M
Internet de las cosas y protección de los consumidores orientada a procesos M2M
 
BDO ITSMF 2007
BDO ITSMF 2007BDO ITSMF 2007
BDO ITSMF 2007
 
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User Guide
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User GuideM.G.Goman, A.V.Khramtsovsky (1993) - KRIT User Guide
M.G.Goman, A.V.Khramtsovsky (1993) - KRIT User Guide
 
RDFS with Attribute Equations via SPARQL Rewriting
RDFS with Attribute Equations via SPARQL RewritingRDFS with Attribute Equations via SPARQL Rewriting
RDFS with Attribute Equations via SPARQL Rewriting
 
Sử dụng windows XP
Sử dụng windows XPSử dụng windows XP
Sử dụng windows XP
 
Matriculacions i transferències 1r trimestre 2012. GREMI DEL MOTOR
Matriculacions i  transferències 1r trimestre 2012. GREMI DEL MOTORMatriculacions i  transferències 1r trimestre 2012. GREMI DEL MOTOR
Matriculacions i transferències 1r trimestre 2012. GREMI DEL MOTOR
 
How to create and copy a email list in general selection
How to create and copy a email list in general selectionHow to create and copy a email list in general selection
How to create and copy a email list in general selection
 
Renacimientoquattrocenttoarquitectura
RenacimientoquattrocenttoarquitecturaRenacimientoquattrocenttoarquitectura
Renacimientoquattrocenttoarquitectura
 
TIC para Estudiantes con Necesidades Especiales.
TIC para Estudiantes con Necesidades Especiales.TIC para Estudiantes con Necesidades Especiales.
TIC para Estudiantes con Necesidades Especiales.
 
Data Security Using Elliptic Curve Cryptography
Data Security Using Elliptic Curve CryptographyData Security Using Elliptic Curve Cryptography
Data Security Using Elliptic Curve Cryptography
 
Surfdog Action Sports
Surfdog Action SportsSurfdog Action Sports
Surfdog Action Sports
 
MailUp - Sistema Professionale di Email Marketing via web
MailUp - Sistema Professionale di Email Marketing via webMailUp - Sistema Professionale di Email Marketing via web
MailUp - Sistema Professionale di Email Marketing via web
 
La Biblioteca se abre a la sociedad
La Biblioteca se abre a la sociedadLa Biblioteca se abre a la sociedad
La Biblioteca se abre a la sociedad
 
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.o
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.oBodas de sangre_primer_y_segundo_curso_de_la_e.s.o
Bodas de sangre_primer_y_segundo_curso_de_la_e.s.o
 
La importancia de fomentar Resiliencia
La importancia de fomentar ResilienciaLa importancia de fomentar Resiliencia
La importancia de fomentar Resiliencia
 
Final project tata indicom
Final project tata indicomFinal project tata indicom
Final project tata indicom
 

Ähnlich wie JBUG Netherlands Openshift Primer

NLUUG Spring 2012 - OpenShift Primer
NLUUG Spring 2012 - OpenShift PrimerNLUUG Spring 2012 - OpenShift Primer
NLUUG Spring 2012 - OpenShift PrimerEric D. Schabell
 
OpenShift Primer - get your business into the Cloud today!
OpenShift Primer - get your business into the Cloud today!OpenShift Primer - get your business into the Cloud today!
OpenShift Primer - get your business into the Cloud today!Eric D. Schabell
 
OpenShift State of the Union, brought to you by JBoss
OpenShift State of the Union, brought to you by JBossOpenShift State of the Union, brought to you by JBoss
OpenShift State of the Union, brought to you by JBossEric D. Schabell
 
Codemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift PrimerCodemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift PrimerEric D. Schabell
 
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)Eric D. Schabell
 
Open shift
Open shiftOpen shift
Open shiftmarcolof
 
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Cisco DevNet
 
Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...Aleksey Tkachenko
 
From Code to Cloud - PHP on Red Hat's OpenShift
From Code to Cloud - PHP on Red Hat's OpenShiftFrom Code to Cloud - PHP on Red Hat's OpenShift
From Code to Cloud - PHP on Red Hat's OpenShiftEric D. Schabell
 
Multiconf - Python Configuration API
Multiconf - Python Configuration APIMulticonf - Python Configuration API
Multiconf - Python Configuration APIlarshni
 
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJava Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJeff Prestes
 
OpenShift: Java EE in the clouds
OpenShift: Java EE in the cloudsOpenShift: Java EE in the clouds
OpenShift: Java EE in the cloudsMax Andersen
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubScott Graham
 
DEEP: a user success story
DEEP: a user success storyDEEP: a user success story
DEEP: a user success storyEOSC-hub project
 
Introduction to PHP (SDPHP)
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)Eric Johnson
 
HTML5 Drupal Working Group
HTML5 Drupal Working GroupHTML5 Drupal Working Group
HTML5 Drupal Working GroupJen Simmons
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis OverviewLeo Lorieri
 
Habitat Workshop at Velocity London 2017
Habitat Workshop at Velocity London 2017Habitat Workshop at Velocity London 2017
Habitat Workshop at Velocity London 2017Mandi Walls
 
The Modern Developer Toolbox
The Modern Developer ToolboxThe Modern Developer Toolbox
The Modern Developer ToolboxPablo Godel
 
State ofappdevelopment
State ofappdevelopmentState ofappdevelopment
State ofappdevelopmentgillygize
 

Ähnlich wie JBUG Netherlands Openshift Primer (20)

NLUUG Spring 2012 - OpenShift Primer
NLUUG Spring 2012 - OpenShift PrimerNLUUG Spring 2012 - OpenShift Primer
NLUUG Spring 2012 - OpenShift Primer
 
OpenShift Primer - get your business into the Cloud today!
OpenShift Primer - get your business into the Cloud today!OpenShift Primer - get your business into the Cloud today!
OpenShift Primer - get your business into the Cloud today!
 
OpenShift State of the Union, brought to you by JBoss
OpenShift State of the Union, brought to you by JBossOpenShift State of the Union, brought to you by JBoss
OpenShift State of the Union, brought to you by JBoss
 
Codemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift PrimerCodemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift Primer
 
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
 
Open shift
Open shiftOpen shift
Open shift
 
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
Golang 101 for IT-Pros - Cisco Live Orlando 2018 - DEVNET-1808
 
Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...Docman - The swiss army knife for Drupal multisite docroot management and dep...
Docman - The swiss army knife for Drupal multisite docroot management and dep...
 
From Code to Cloud - PHP on Red Hat's OpenShift
From Code to Cloud - PHP on Red Hat's OpenShiftFrom Code to Cloud - PHP on Red Hat's OpenShift
From Code to Cloud - PHP on Red Hat's OpenShift
 
Multiconf - Python Configuration API
Multiconf - Python Configuration APIMulticonf - Python Configuration API
Multiconf - Python Configuration API
 
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending MachineJava Device I/O at Raspberry PI to Build a Candy Vending Machine
Java Device I/O at Raspberry PI to Build a Candy Vending Machine
 
OpenShift: Java EE in the clouds
OpenShift: Java EE in the cloudsOpenShift: Java EE in the clouds
OpenShift: Java EE in the clouds
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
 
DEEP: a user success story
DEEP: a user success storyDEEP: a user success story
DEEP: a user success story
 
Introduction to PHP (SDPHP)
Introduction to PHP   (SDPHP)Introduction to PHP   (SDPHP)
Introduction to PHP (SDPHP)
 
HTML5 Drupal Working Group
HTML5 Drupal Working GroupHTML5 Drupal Working Group
HTML5 Drupal Working Group
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
Habitat Workshop at Velocity London 2017
Habitat Workshop at Velocity London 2017Habitat Workshop at Velocity London 2017
Habitat Workshop at Velocity London 2017
 
The Modern Developer Toolbox
The Modern Developer ToolboxThe Modern Developer Toolbox
The Modern Developer Toolbox
 
State ofappdevelopment
State ofappdevelopmentState ofappdevelopment
State ofappdevelopment
 

Mehr von Eric D. Schabell

OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureEric D. Schabell
 
Checking the pulse of your cloud native architecture
Checking the pulse of your cloud native architectureChecking the pulse of your cloud native architecture
Checking the pulse of your cloud native architectureEric D. Schabell
 
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 DataEric D. Schabell
 
Observability For You and Me with OpenTelemetry (with demo)
Observability For You and Me with OpenTelemetry (with demo)Observability For You and Me with OpenTelemetry (with demo)
Observability For You and Me with OpenTelemetry (with demo)Eric D. Schabell
 
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 ObservabilityEric 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 OpenTelemetryEric D. Schabell
 
Roadmap to Becoming a CNCF Ambassador
Roadmap to Becoming a CNCF AmbassadorRoadmap to Becoming a CNCF Ambassador
Roadmap to Becoming a CNCF AmbassadorEric 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 ActionEric D. Schabell
 
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 OutcomesEric D. Schabell
 
Optimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsOptimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsEric D. Schabell
 
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 ActionEric D. Schabell
 
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 ProductionEric D. Schabell
 
Optimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsOptimizing Observability Spend: Metrics
Optimizing Observability Spend: MetricsEric 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 OpenTelemetryEric 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 OpenTelemetryEric D. Schabell
 
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 DataEric D. Schabell
 
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 DataEric D. Schabell
 
DZone webinar - Shift left Observability
DZone webinar - Shift left ObservabilityDZone webinar - Shift left Observability
DZone webinar - Shift left ObservabilityEric D. Schabell
 
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 storyEric D. Schabell
 

Mehr von Eric D. Schabell (20)

OpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability AdventureOpenShift Commons Paris - Choose Your Own Observability Adventure
OpenShift Commons Paris - Choose Your Own Observability Adventure
 
Checking the pulse of your cloud native architecture
Checking the pulse of your cloud native architectureChecking the pulse of your cloud native architecture
Checking the pulse of your cloud native architecture
 
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
 
Observability For You and Me with OpenTelemetry (with demo)
Observability For You and Me with OpenTelemetry (with demo)Observability For You and Me with OpenTelemetry (with demo)
Observability For You and Me with OpenTelemetry (with demo)
 
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
 

JBUG Netherlands Openshift Primer

  • 1. OpenShift Primer Get your code into the Cloud! Eric D. Schabell JBoss Technology Evangelist http://www.schabell.org 12 Dec 2012, JBUG Netherlands Eric D. Schabell / @ericschabell / erics@redhat.com
  • 2. First things first, sign up! http://openshift.redhat.com Promotional Code: JBUGNL Eric D. Schabell / @ericschabell / erics@redhat.com
  • 3. OpenShift, a little history ● Nov 2010 – Makara acquired ● In 2011 – merged into OpenShift project ● May 2012 – Open Sourced OpenShift ● LiveCD launched for local PaaS ● GitHub code base ● Activity: blogs, howto's, quickstarts, webinars ● June 2012 – JBoss World, OpenShift Enterprise PaaS announced. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 4. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 5. Never look back... Eric D. Schabell / @ericschabell / erics@redhat.com
  • 6. PaaS? Eric D. Schabell / @ericschabell / erics@redhat.com
  • 7. Why am i DORKING with the stack?! Eric D. Schabell / @ericschabell / erics@redhat.com
  • 8. Quickstart 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT) Eric D. Schabell / @ericschabell / erics@redhat.com
  • 9. http://openshift.redhat.com – “Sign up and Try it!” ● Example projects you can deploy now! ● https://www.github.com/openshift ● Help? ● IRC: freenode #openshift Promotional Code: JBUGNL ● Forums: http://www.redhat.com/opens hift/community/forums ● Email: openshift at redhat dot com Eric D. Schabell / @ericschabell / erics@redhat.com
  • 10. Install Client Tools ● Fedora / RHEL ● The rest (osX, Ubuntu, Cygwin): ● openshift.repo ● gem install rhc (json_pure) ● Move to yum.repos.d ● see forums, blogs $ sudo mv openshift.repo /etc/yum.repos.d ● Install client tools $ sudo yum install rubygem-rhc Eric D. Schabell / @ericschabell / erics@redhat.com
  • 11. Create Domain ● Use rhc command $ rhc domain create -n mydomain -l openshiftlogin ● Use admin console! Eric D. Schabell / @ericschabell / erics@redhat.com
  • 12. Web Administration Eric D. Schabell / @ericschabell / erics@redhat.com
  • 13. Browse tags Eric D. Schabell / @ericschabell / erics@redhat.com
  • 14. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 15. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 16. Create Eric D. Schabell / @ericschabell / erics@redhat.com
  • 17. Configure Eric D. Schabell / @ericschabell / erics@redhat.com
  • 18. Ready to code! Eric D. Schabell / @ericschabell / erics@redhat.com
  • 19. Application Details Eric D. Schabell / @ericschabell / erics@redhat.com
  • 20. Other Options ● Name app and define type $ rhc app create -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.” Eric D. Schabell / @ericschabell / erics@redhat.com
  • 21. Deploy to Cloud ● Push the code to Express $ git push ● Congratulations, your app is in the cloud! Eric D. Schabell / @ericschabell / erics@redhat.com
  • 22. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 23. Gears 500MB memory + 1GB storage Eric D. Schabell / @ericschabell / erics@redhat.com
  • 24. JBoss Developer Studio Eric D. Schabell / @ericschabell / erics@redhat.com
  • 25. Tips & Tricks – no more passwords ● One way: ● save your password in .openshift/pass.txt ● chmod 600 .openshift/pass.txt ● rhc domain show -p `cat .openshift/pass.txt` ● Better: ● add function to .bashrc or .bash_profile function rhc() { `which rhc` "$@" -p "`cat ~/.openshift/.pass.txt`" # You can also specify -l $login if needed. } Eric D. Schabell / @ericschabell / erics@redhat.com
  • 26. Tips & Tricks – hot deployments ● Works for JBoss AS 7, PHP and Ruby (for now) ● add marker file: touch .openshift/markers/hot_deploy * note – still have to live inside memory footprint, maybe use Jenkins? Eric D. Schabell / @ericschabell / erics@redhat.com
  • 27. Demo DevDayUK Mobile App $ rhc app create -a devdayuk -t jbosseap-6.0 $ cd devdayuk $ git remote add upstream -m master git://github.com/eschabell/openshift-devdayuk.git $ git pull -s recursive -X theirs upstream master $ git push http://devdayuk-$your_domain.rhcloud.com Eric D. Schabell / @ericschabell / erics@redhat.com
  • 28. Demo jBPM Web Designer $ rhc app create -a editor -t jbossas-7 $ 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/designer/editor?profile=jbpm&uuid=123 Eric D. Schabell / @ericschabell / erics@redhat.com
  • 29. Demo jBPM Migration Project $ rhc app create -a jbpmmigration -t jbossas-7 $ cd jbpmmigration $ git remote add upstream -m master git://github.com/eschabell/openshift-jbpmmigration.git $ git pull -s recursive -X theirs upstream master $ git push http://jbpmmigration-$your_domain.rhcloud.com/jbpmmigration_upload-0.4 Eric D. Schabell / @ericschabell / erics@redhat.com
  • 30. Demo Switchyard Project $ rhc app create -a swyesb -t jbossas-7 $ cd swyesb $ git remote add upstream -m master git://github.com/eschabell/switchyard-openshift.git $ git pull -s recursive -X theirs upstream master $ git push http://swyesb-$your_domain.rhcloud.com/switchyard-quickstart-demo-orders Eric D. Schabell / @ericschabell / erics@redhat.com
  • 31. Demo Ceylon Project $ rhc app create -a ceylon -t jbossas-7 $ cd ceylon $ git remote add upstream -m master git://github.com/eschabell/ceylon-openshift.git $ git pull -s recursive -X theirs upstream master $ git push http://ceylon-$your_domain.rhcloud.com Eric D. Schabell / @ericschabell / erics@redhat.com
  • 32. Demo GateIn Project $ rhc app create -a portal -t jbossas-7 $ cd portal $ git remote add upstream -m master git://github.com/eschabell/openshift-portal.git $ git pull -s recursive -X theirs upstream master $ git push http://portal-$your_domain.rhcloud.com/portal Eric D. Schabell / @ericschabell / erics@redhat.com
  • 33. Demo Drools Planner $ rhc app create -a droolsplanner -t jbosseap-6.0 $ cd droolsplanner $ git remote add upstream -m master git://github.com/eschabell/openshift-droolsplanner.git $ git pull -s recursive -X theirs upstream master $ git push http://droolsplanner-$your_domain.rhcloud.com/droolsplanner Eric D. Schabell / @ericschabell / erics@redhat.com
  • 34. Demo JBoss BRMS 5.3* $ rhc app create -a brms53 -t jbossas-7 $ cd brms53 $ git remote add upstream -m master git://github.com/eschabell/openshift-brms53.git $ git pull -s recursive -X theirs upstream master $ git push http://brms53-$your_domain.rhcloud.com:8080/jboss-brms Eric D. Schabell / @ericschabell / erics@redhat.com
  • 35. Loving your hammers? Eric D. Schabell / @ericschabell / erics@redhat.com
  • 36. OpenShift: http://openshift.redhat.com ● OpenShift Enterprise PaaS FAQ: http://www.redhat.com/resourcelibrary/datasheets/openshift-enterprise-paas-solution ● Blogs: https://www.redhat.com/openshift/community/blogs ● Repository for all OpenShift demos shown here: https://github.com/eschabell ● OpenShift demo repository: https://github.com/openshift ● Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html ● OpenShift Primer (e-book) http://www.schabell.org/2012/12/openshift-primer-book-published-amazon-ibooks.html Eric D. Schabell / @ericschabell / erics@redhat.com