power up magnolia cms with openshift

25
OPENSHIFT Workshop PRESENTED BY Shekhar Gulati Power up Magnolia CMS with OpenShift

Upload: shekhar-gulati

Post on 08-May-2015

1.336 views

Category:

Technology


4 download

DESCRIPTION

Power up Magnolia CMS with OpenShift

TRANSCRIPT

Page 1: Power up Magnolia CMS with OpenShift

OPENSHIFTWorkshop

PRESENTEDBY

ShekharGulati

Power up Magnolia CMS with OpenShift

Page 2: Power up Magnolia CMS with OpenShift

IN CASE YOU CARE

• Shekhar Gulati – Works at Red Hat

• Principal OpenShift Developer Evangelist

• Java / Python/ JavaScript / NoSQL / Cloud Guy

• Twitter Handle : shekhargulati

• Github https://github.com/shekhargulati

• Slides http://www.slideshare.net/shekhargulati

Page 3: Power up Magnolia CMS with OpenShift

AGENDA

➔ Learn a bit about Cloud and PaaS basics

➔ Why PaaS Matters

➔ Deploying Magnolia CMS on OpenShift

➔ Minimal Magnolia CMS Configuration

➔ Reduced Magnolia CMS Configuration

Page 4: Power up Magnolia CMS with OpenShift

● You know about Magnolia CMS● You know Git● You like to write code rather than

managing servers.

ASSUMPTIONS

Page 5: Power up Magnolia CMS with OpenShift

*http://www.gartner.com/technology/research/cloud-computing/report/paas-cloud.jsp

PaaS is the Future

Page 6: Power up Magnolia CMS with OpenShift
Page 7: Power up Magnolia CMS with OpenShift

Infrastructure as a Service gives you• Network, storage & compute as an on-demand service

• Basically, servers in the cloud

• You’re still on the hook to configure & manage the cloud & stack

“How do I use this?”

Page 8: Power up Magnolia CMS with OpenShift

Software as a Service gives you

• An on-demand application• Nothing to install or configure

“This is all my customers and users care about!”

Page 9: Power up Magnolia CMS with OpenShift

Platform as a Service delivers

• Application run-time environment in the cloud

• Configures & manages both the cloud & stack for your application

“The cloud is now useful!”

Page 10: Power up Magnolia CMS with OpenShift

origin

Public Cloud

Service

On-premise

or Private Cloud

Software

Open Source Project

FLAVORS OF OPENSHIFT

Page 11: Power up Magnolia CMS with OpenShift

11

TERMINOLOGY

Gear – is like a server. It can have only 1 language for the web programming.

Cartridge – it adds a language, a data store, or other functionality

Application – your web code and any data store. Has to be on 1 or more gears

Page 12: Power up Magnolia CMS with OpenShift

12

OUR STACK

Page 13: Power up Magnolia CMS with OpenShift

WHAT MAKES OPENSHIFT DIFFERENT ?

Page 14: Power up Magnolia CMS with OpenShift

WHERE DOES MAGNOLIA FITS IN?

Page 15: Power up Magnolia CMS with OpenShift

WHERE DOES MAGNOLIA FITS IN?

Page 16: Power up Magnolia CMS with OpenShift

● On-demand self-service Magnolia CMS certified stack.

● Standardize Magnolia CMS application development and deployment.

● Auto scaling of Magnolia CMS.

● Automate application environment deployment.

● Reduce time to market.

OpenShift Magnolia Integration Benefits

Page 17: Power up Magnolia CMS with OpenShift

DEMO TIME

Page 18: Power up Magnolia CMS with OpenShift

● Sign up for OpenShift Online

● Install OpenShift rhc ruby gem● rhc create-app magnoliacms tomcat-7

● git rm -rf src/ pom.xml

● git commit -am “template files”

● git remote add upstream https://github.com/shekhargulati/mg-5.0.4-tomcat7-openshift.git

● git pull -s recursive -X theirs upstream master

● git push

Magnolia CMS 5.0.4 on OpenShift

http://magnoliacms-t20.rhcloud.com/

Page 19: Power up Magnolia CMS with OpenShift

● You can also use – JBoss AS 7

– JBoss EAP 6

– MySQL

– PostgreSQL

Page 20: Power up Magnolia CMS with OpenShift

OpenShift Magnolia CMS Minimal Configuration Setup

● Sign up for OpenShift Online

● Install OpenShift rhc ruby gem

● rhc create-app mgminimal tomcat-7

● git rm -rf src/ pom.xml

● git commit -am “deleted template”

● git remote add upstream https://[email protected]/shekhargulati/mg-minimal-os-quickstart.git

● git pull -s recursive -X theirs upstream master

● git push

http://mgminimal-t20.rhcloud.com/

Page 21: Power up Magnolia CMS with OpenShift

OpenShift Magnolia CMS Reduced Configuration Setup

Magnolia Author Instance

● rhc create-app mgauthor tomcat-7

● git rm -rf src/ pom.xml

● git commit -am “deleted template”

● git remote add upstream https://github.com/shekhargulati/mg-author-quickstart.git

● git pull -s recursive -X theirs upstream master

● git push

Magnolia Author Instance

● rhc create-app mgpublic tomcat-7

● git rm -rf src/ pom.xml

● git commit -am “deleted template”

● git remote add upstream https://github.com/shekhargulati/mg-public-quickstart.git

● git pull -s recursive -X theirs upstream master

● git push

Page 22: Power up Magnolia CMS with OpenShift

http://mgauthor-t20.rhcloud.com/magnoliaAuthor/

http://mgpublic-t20.rhcloud.com/magnoliaPublic/

Page 23: Power up Magnolia CMS with OpenShift

● You can have single author instance and multiple public subscribers

● You can scale public and author instance● You can use Jenkins for deployment● You can write cartridge for Magnolia CMS

What Else Is Feasible?

Page 24: Power up Magnolia CMS with OpenShift

QUESTIONS?

Page 25: Power up Magnolia CMS with OpenShift

DONE!