Mastering xPaaS - get down and dirty in the OpenShift Cloud (part I)
Joomla in the cloud with Openshift
-
Upload
edoardo-schepis -
Category
Business
-
view
3.877 -
download
0
Transcript of Joomla in the cloud with Openshift
Edoardo SchepisJBoss Solution ArchitectRed Hat
Joomla! in the Cloud withOpenShift
Platform-as-a-Service
Business Value of PaaS
RAPID DEPLOYMENT
ELASTIC SCALING
PAY-AS-YOU-GROW
FOCUS ON THE APPNOT THE INFRASTRUCTURE
Introducing OpenShift
A free auto-scaling PaaS from Red Hat
Supports multiple frameworks, languages, and middleware
Fast on-ramp to the cloud...upload code and go!
OpenShift Express
Free-as-in-Beer app hosting
Fastest on-ramp to the cloud
Easy-to-use command-line tools
Java, PHP, Perl, Python & Ruby
MySQL & SQLite
Deploy & update via Git
Shared-hosting model
Linux Control Groups (cgroups)
SELinux-based security
OpenShift Flex
30 hrs of free EC2 time to get started
Browser-based UI
Java EE (EE6, jruby, jython, ...) and PHP
JBoss, Tomcat, Apache
MySQL, MongoDB, Memcached, Membase
Cloud server provisioning
Application deployment, versioning & rollback
Performance monitoring
Log management
Auto-scaling
OpenShift Express and Flex
Express Demo
Install client tools
Create a subdomain
Create an application
Add application files
Commit changes
Deploy to the cloud
Step 1: Sign Up
openshift.com/try-it
Step 2: Install the Client Tools
> Download openshift.repo
> Move openshift.repo to yum.repos.d
> Install the client tools
$ sudo mv ~Downloads/openshift.repo
/etc/yum.repos.d/
$ sudo yum install rhc
> Fedora / RHEL:
> The rest (OSX, Ubuntu, Cygwin):
> gem install rhc
Requires 'ruby' and 'gem'
http://rubyforge.org/projects/rubygems
Step 3: Create Joomladay Domain
> Use the rhc-create-domain command
> OR use the Express console
$ rhc-create-domain -n joomladay -l
$ git remote add upstream -m master git://github.com/openshift/joomla-example.git$ git pull -s recursive -X theirs upstream master
* You can also use appstream from github/openshift repo
Step 4: Create joomlacloud Application
> Name your app and define its type
> Add MySQL support
$ rhc-create-app -a joomlacloud -t php-5.3 -l
$ git add -A
> Commit your changes
$ git commit -a -m JoomlaDay: Joomla goes in the cloud!
> Unzip Joomla in ./joomlacloud/php and add it to the local Git repository*
$ rhc-ctl-app -a joomlacloud -e add-mysql-5.1 -l
Step 5: Deploy to the Cloud
> Push the local Git repo to Express
> Congratulations, your app is in the cloud!
$ git push
OpenShift Flex Demo
Setup Cloud Account
Provision cloud servers
Build stack
Upload application code
Configure components
Deploy application
Versioning and Rollbacks
Performance monitoring
Log management
Auto-scaling
Step 1: Login
> Log into Flex
Step 2: Setup your Cloud Account
> Try it for free!
> OR input your credentials
Step 3: Create a Cluster
> Click Add Cluster
> Define your cluster
> Check cluster creation status in Events view
Step 4: Cluster and Server Views
> Cluster view
> Server view
Step 5: Deploy an Application
> Click Add Application in the Applications view
> Name and version your app
Step 5: Deploy an Application
> Click on your app
> Select components
Step 5: Deploy an Application
> Upload application code
Step 5: Deploy an Application
> Configure components
Step 5: Deploy an Application
> Review changes and deploy
Step 5: Deploy an Application
> Congratulations, your app is in the cloud!
Step 6: Performance Monitoring
> Cluster to transaction-level monitoring
> Point-in-time and compare
Step 7: Log Management
> Component and application log archiving
> Search logs regardless of current state or size of cluster
Step 8: Auto-Scaling
> Click on Auto-Scaling tab
> Define scaling strategy
Next Steps
Sign up It's free!http://www.openshift.com - click Try it!
Example Git Repos You Can Deploy NOW!https://www.github.com/openshift
https://github.com/openshift/joomla-example
Help?IRC: freenode #openshift
Forums: http://www.redhat.com/openshift/forums
Email: openshift at redhat dot com
edschepis
Click to edit the title text format
Click to edit the outline text format
Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline LevelSeventh Outline LevelEighth Outline LevelNinth Outline Level