This document summarizes an OpenShift State of the Union presentation given at Devoxx 2012. It provides a brief history of OpenShift including its acquisition by Red Hat in 2010 and open sourcing in 2012. It then demonstrates how to get started with OpenShift including signing up, installing client tools, creating a domain and applications, deploying applications using Git, and available web cartridges. Tips and demos of deploying sample applications are also provided.
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
OpenShift State of the Union: An Update on Red Hat's Platform-as-a-Service
1. OpenShift
State of the Union
Devoxx 2012
Marco Rietveld
JBoss Software Engineer
http://mriet.wordpress.com/
@marcorietveld
14 Nov 2012, Antwerp
2. Sign up (It’s free!) Sorry spam bots!
No OpenShift for you!
Got a laptop?
(Why not?!?)
Promo code:
DEVOXX2012
http://openshift.com/
This way you can follow
along with the demos.
3. OpenShift status
“A speech given by
the US President to
Congress every
year describing the
condition of the
country...”
4. History Lesson
• November 2010: Makara acquired by Red Hat
• 2011: Makara merged into the OpenShift
project
• May 2012: OpenShift open sourced!
• Live CD launched for local PaaS
• GitHub code base
• Activity: blogs, howto’s, quickstarts, webinars...
• June 2012: JBoss World, OpenShift Enterprise
PaaS announced.
9. STOP DORKING WITH THE STACK
Time spent setting up the server:
14 hours
Time spent finding
and fixing the problem:
45 minutes
There are some things that you
can spend all day(s) on.
This is NOT ONE OF THEM!
11. Sign up (It’s free!) Sorry spam bots!
No OpenShift for you!
Got a laptop?
(Why not?!?)
Promo code:
DEVOXX2012
http://openshift.com/
This way you can follow
along with the demos.
12. Install Client Tools
Command line (https://openshift.redhat.com/community/developers/install-the-client-tools)
Fedora Ubuntu
$ sudo yum install rubygem-rhc
Windows
Install Ruby (RubyInstaller 1.9) $ sudo apt-get instal
$ rhc
Install Git for Windows (1.8.0) $ ruby -e ‘puts “Test
$ sudo gem update rhc Test
C:Program Files> gem install rhc $ git --version
C:Program Files> rhc git version 1.8.0
$ sudo getm install r
Other $ rhc
See link above
Mac OS X
$ ruby -e ‘puts “Ruby is installed”’
Ruby is installed
$ git --version
git version 1.8.0
$ sudo gem install rhc
$ rhc
13. Create your Domain
- Use the rhc command
$ rhc domain create -n mydomain -l openshiftlogin
- Use the
admin console
20. And Now with the
Command Line
• Name app and define type
$ rhc app create -a <appname> -t <apptype> -l <openshiftlogin>
• Add application to local repo
$ cd <appname>
$ # add files, change them, etc!
$ git add .
• Commit changes
$ git commit -m “Initial app import.”
21. DEPLOY
$ git push (Git hooks)
In your git repository:
.openshift/action_hooks/pre_build
.openshift/action_hooks/build
.openshift/action_hooks/deploy
.openshift/action_hooks/post_deploy
25. Tips & No More Passwords! (bash)
Save password in ~/.openshift/.pwd
Tricks $ chmod 600 ~/.openshift/.pwd
$ function rhc() {
`which rhc` “$@” -p “`cat ~/.openshift/.pwd`”
# -l $login also, if you want
}
Hot Deployments!
Works for JBoss AS7, PHP and Ruby. Git Config
Add marker file: autosetuprebase=true
$ touch .openshift/markers/hot_deploy
can cause problems...
... remember, you still have to live inside the unless you’re a git guru!
memory footprint -- there’s also Jenkins!
35. Local PaaS
Runs on Virtual Box
(or virtmanager on linux)
Amazon AMI’s can also
be created.
Open Source
36. Oct 17, 2011
Progress
Nov 15, 2011
Dec 9, 2011
Dec 20, 2011 • Frequent releases
Jan 17, 2012
Feb 7, 2012 • Vote on Features
https://openshift.redhat.com/community/ideas
Feb 21, 2012
March 5, 2012
March 22, 2012
• Get involved
https://openshift.redhat.com/community/get-involved
May 15, 2012
June 26, 2012
July 18, 2012
Aug 8, 2012
Aug 28, 2012
Sep 18, 2012
Oct 21, 2012
37. Links, Info, IRC, email, ...
Openshift http://openshift.redhat.com
Example projects you can deploy now https://www.github.com/openshift
as in -- during this talk -- but, you wouldn’t right? I’m still talking!
Help?
IRC freenode #openshift
http://www.redhat.com/openshift/
Forums community/forums
Email openshift at redhat dot