Upload
max-andersen
View
635
Download
4
Tags:
Embed Size (px)
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.
Citation preview
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
DEMO TIME!
10,000 feet overview
Broker
App
Reverse Proxy
HTTP/REST
SSH
http(s)://<appname>-<domain>.rhcloud.com
Dev Host
User Host
Gear
...
Node
Red Hat Managed
Locally Managed
Enterprise IT Developer 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 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
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