openshift: java ee in the clouds

26
OPENSHIFT: JAVA EE IN THE CLOUDS Max Rydahl Andersen, Red Hat

Upload: max-andersen

Post on 13-Jan-2015

635 views

Category:

Technology


4 download

DESCRIPTION

OpenShift is Red Hat's polyglot Platform as a service which allow you to run a large range of services in the cloud. In this talk I will give an introduction to OpenShift, what it offers and how it works. The talk will be in two parts. First part is about OpenShift in general and how to use it from the command line and the web console Second part is about how JBoss Developer Studio works with OpenShift and how it both coexist and extend the experience you get with "plain" OpenShift. This part will focus especially on how well the JavaEE and mobile parts of Developer Studio works with OpenShift. The talk is intended to be practical and guided by attendees question.

TRANSCRIPT

Page 1: OpenShift: Java EE in the clouds

OPENSHIFT: JAVA EE IN THE CLOUDS Max Rydahl Andersen, Red Hat

Page 2: OpenShift: Java EE in the clouds

Re

Page 3: OpenShift: Java EE in the clouds
Page 4: OpenShift: Java EE in the clouds

What is OpenShift ?Red Hat's free, auto-scaling Platform as a Service

(PaaS) for applications in the cloud.

Page 5: OpenShift: Java EE in the clouds

What is supported on OpenShift ?

Page 6: OpenShift: Java EE in the clouds

How to get started…

Page 7: OpenShift: Java EE in the clouds
Page 8: OpenShift: Java EE in the clouds

SSH

Page 9: OpenShift: Java EE in the clouds

Using Github

$ rhc domain create man $ rhc app create alpejugs jbosseap $ cd alpejugs … $ git push origin $ rhc tail alpejugs

Page 10: OpenShift: Java EE in the clouds

1. Write code 2. git commit 3. git push 4. Goto #1 !

!10

http://openshift.com

Page 11: OpenShift: Java EE in the clouds

DEMO TIME!

Page 12: OpenShift: Java EE in the clouds

10,000 feet overview

Broker

App

Reverse Proxy

HTTP/REST

SSH

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

Dev Host

User Host

Gear

...

Node

Page 13: OpenShift: Java EE in the clouds

Red Hat Managed

Locally Managed

Enterprise IT Developer Managed

Page 14: OpenShift: Java EE in the clouds

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

Page 15: OpenShift: Java EE in the clouds

Pause ?

Page 16: OpenShift: Java EE in the clouds

OpenShift, Java and Eclipse

Page 17: OpenShift: Java EE in the clouds

OpenShift Eclipse ToolingAvailable 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

Page 18: OpenShift: Java EE in the clouds

DEMO TIME!

Page 19: OpenShift: Java EE in the clouds

Demo Recap

Setup OpenShift Connection

Create OpenShift Application

Browse Existing applications

Push via Server Adapter

Tail files

Page 20: OpenShift: Java EE in the clouds

Advanced Features

.openshift folder magic

Jenkins

Database

Port Forwarding

Remote Debugging

Extend OpenShift

Page 21: OpenShift: Java EE in the clouds

.openshift/*

action_hooks/

config/

cron/

markers/

Page 22: OpenShift: Java EE in the clouds

Jenkins

Full blown Jenkins

Takes 1 gear

Used when pushing

Page 23: OpenShift: Java EE in the clouds

Database

mysql, postgresql, mongodb

Connection setup in .openshift/

Page 24: OpenShift: Java EE in the clouds

Port Forwarding

Connect to any remote exposed service locally

Useful for database, debugging and other evil

Page 25: OpenShift: Java EE in the clouds

Remote Debugging

enable jpda

Page 26: OpenShift: Java EE in the clouds

Links

http://openshift.com

https://github.com/openshift

http://devstudio.jboss.com