Power up Magnolia CMS with OpenShift
-
Upload
shekhar-gulati -
Category
Technology
-
view
1.336 -
download
4
description
Transcript of Power up Magnolia CMS with OpenShift
![Page 1: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/1.jpg)
OPENSHIFTWorkshop
PRESENTEDBY
ShekharGulati
Power up Magnolia CMS with OpenShift
![Page 2: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/2.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/3.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/4.jpg)
● 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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/5.jpg)
*http://www.gartner.com/technology/research/cloud-computing/report/paas-cloud.jsp
PaaS is the Future
![Page 6: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/6.jpg)
![Page 7: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/7.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/8.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/9.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/10.jpg)
origin
Public Cloud
Service
On-premise
or Private Cloud
Software
Open Source Project
FLAVORS OF OPENSHIFT
![Page 11: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/11.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/12.jpg)
12
OUR STACK
![Page 13: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/13.jpg)
WHAT MAKES OPENSHIFT DIFFERENT ?
![Page 14: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/14.jpg)
WHERE DOES MAGNOLIA FITS IN?
![Page 15: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/15.jpg)
WHERE DOES MAGNOLIA FITS IN?
![Page 16: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/16.jpg)
● 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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/17.jpg)
DEMO TIME
![Page 18: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/18.jpg)
● 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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/19.jpg)
● You can also use – JBoss AS 7
– JBoss EAP 6
– MySQL
– PostgreSQL
![Page 20: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/20.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/21.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/22.jpg)
http://mgauthor-t20.rhcloud.com/magnoliaAuthor/
http://mgpublic-t20.rhcloud.com/magnoliaPublic/
![Page 23: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/23.jpg)
● 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](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/24.jpg)
QUESTIONS?
![Page 25: Power up Magnolia CMS with OpenShift](https://reader034.fdocuments.us/reader034/viewer/2022052209/554bd1abb4c9058f6c8b4c95/html5/thumbnails/25.jpg)
DONE!