OPENSHIFT: JAVA EE IN THE CLOUDS
Max Rydahl Andersen, Red Hat
Re
What is OpenShift ?
Red Hat's free, auto-scaling Platform as a Service
(PaaS) for applications in the cloud.
What is supported on OpenShift ?
How to get started…
SSH
Using Github

$ rhc domain create man
$ rhc app create alpejugs jbosseap
$ cd alpejugs
…
$ git push origin
$ rhc tail alpejugs
Write code
2. git commit
3. git push
4. Goto #1
1.

!

http://openshift.com
!10
DEMO TIME!
10,000 feet overview
HTTP/REST
Broker

Dev Host
SSH

...
Node

App
Gear
Reverse 	

Proxy

http(s)://<appname>-<domain>.rhcloud.com

User Host
Enterprise IT

Developer Managed

Red Hat Managed

Locally Managed
Using Github quick starts

$
$
$
$

rhc app create etheralpes nodejs-0.10
rhc cartridge add -a etheralpes -c mongodb-2.2
cd etheralpes
git remote add upstream -m master 
git://github.com/openshift/etherpad-example.git
$ git pull -s recursive -X theirs upstream master
…
...
rhc tail etheralpes
Pause ?
OpenShift, Java and Eclipse
OpenShift Eclipse Tooling
Available from JBoss Tools and Red Hat JBoss Developer Studio
Provide basic management and developer related features
Explorer
Application Wizards
(Portable) Port Forwarding
Server Adapter
Supports All Application types, but JavaEE especially
DEMO TIME!
Demo Recap
Setup OpenShift Connection
Create OpenShift Application
Browse Existing applications
Push via Server Adapter
Tail files
Advanced Features
.openshift folder magic
Jenkins
Database
Port Forwarding
Remote Debugging
Extend OpenShift
.openshift/*
action_hooks/
config/
cron/
markers/
Jenkins

Full blown Jenkins
Takes 1 gear
Used when pushing
Database

mysql, postgresql, mongodb
Connection setup in .openshift/
Port Forwarding

Connect to any remote exposed service locally
Useful for database, debugging and other evil
Remote Debugging

enable jpda
Links
http://openshift.com
https://github.com/openshift
http://devstudio.jboss.com

OpenShift: Java EE in the clouds