<ul>From Code to Cloud: <li>PHP on Red Hat's OpenShift </li></ul><ul>Eric D. Schabell  <li>Solution Architect Red Hat </li...
 
Exposure...
Meditation...
Immersion... Shift happens?
Never look back...
 
SaaS?
IaaS?
PaaS?
Why am i DORKING with the stack?!
 
OpenShift Express <ul><li>Sign Up
Install Client Tools
Create Domain
Create Application
Deploy Application (GIT) </li></ul>
Sign Up openshift.com/try-it
Install Client Tools <ul><li>Fedora / RHEL </li><ul><li>openshift.repo </li></ul><li>Move to yum.repos.d
$ sudo mv openshift.repo /etc/yum.repos.d
Install client tools
$ sudo yum install rhc </li></ul><ul><li>The rest (osX, Ubuntu, Cygwin): </li><ul><li>gem install rhc
see forums, blogs </li></ul></ul>
Create Domain <ul><li>Use rhc-create-domain command </li><ul><li>$ rhc-create-domain -n mydomain -l openshiftlogin </li></...
Create Application <ul><li>Name application and define type </li><ul><li>$ rhc-create-app -a appname -t apptype -l openshi...
(Java, Ruby, Python, Perl and most important, PHP!) </li></ul><li>Add application to local repo </li><ul><li>$ git add . <...
Deploy to Cloud <ul><li>Push the code to Express </li><ul><li>$ git push </li></ul><li>Congratulations, your app is in the...
 
Demo ZendFramework <ul>$ rhc-create-app -a zendphp -t php-5.3 $ cd zendphp $ git remote add upstream -m master git://githu...
Demo Cake <ul>$ rhc-create-app -a cake -t php-5.3 $ rhc-ctl-app -a cake -e add-mysql-5.1 $ cd cake $ git remote add upstre...
Demo Symfony <ul>$ rhc-create-app -a symfonyphp -t php-5.3 $ cd cake $ git remote add upstream -m master git://github.com/...
Enterprise Flexibility? Auto Scaling Log Mgmt Databases Monitoring Automation Roll-backs, Upgrades Speed Deployment Provis...
OpenShift Flex <ul><li>Setup Cloud Account
Upcoming SlideShare
Loading in …5
×

From Code to Cloud - PHP on Red Hat's OpenShift

7,831 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
7,831
On SlideShare
0
From Embeds
0
Number of Embeds
279
Actions
Shares
0
Downloads
29
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

From Code to Cloud - PHP on Red Hat's OpenShift

  1. 1. <ul>From Code to Cloud: <li>PHP on Red Hat's OpenShift </li></ul><ul>Eric D. Schabell <li>Solution Architect Red Hat </li></ul>
  2. 3. Exposure...
  3. 4. Meditation...
  4. 5. Immersion... Shift happens?
  5. 6. Never look back...
  6. 8. SaaS?
  7. 9. IaaS?
  8. 10. PaaS?
  9. 11. Why am i DORKING with the stack?!
  10. 13. OpenShift Express <ul><li>Sign Up
  11. 14. Install Client Tools
  12. 15. Create Domain
  13. 16. Create Application
  14. 17. Deploy Application (GIT) </li></ul>
  15. 18. Sign Up openshift.com/try-it
  16. 19. Install Client Tools <ul><li>Fedora / RHEL </li><ul><li>openshift.repo </li></ul><li>Move to yum.repos.d
  17. 20. $ sudo mv openshift.repo /etc/yum.repos.d
  18. 21. Install client tools
  19. 22. $ sudo yum install rhc </li></ul><ul><li>The rest (osX, Ubuntu, Cygwin): </li><ul><li>gem install rhc
  20. 23. see forums, blogs </li></ul></ul>
  21. 24. Create Domain <ul><li>Use rhc-create-domain command </li><ul><li>$ rhc-create-domain -n mydomain -l openshiftlogin </li></ul><li>OR use the Express console! </li></ul>
  22. 25. Create Application <ul><li>Name application and define type </li><ul><li>$ rhc-create-app -a appname -t apptype -l openshiftlogin
  23. 26. (Java, Ruby, Python, Perl and most important, PHP!) </li></ul><li>Add application to local repo </li><ul><li>$ git add . </li></ul><li>Commit changes </li><ul><li>$ git commit -m “Initial app import.” </li></ul></ul>
  24. 27. Deploy to Cloud <ul><li>Push the code to Express </li><ul><li>$ git push </li></ul><li>Congratulations, your app is in the cloud! </li></ul>
  25. 29. Demo ZendFramework <ul>$ rhc-create-app -a zendphp -t php-5.3 $ cd zendphp $ git remote add upstream -m master git://github.com/eschabell/openshift-zendframework.git $ git pull -s recursive -X theirs upstream master $ git push http://zendphp-$your_domain.rhcloud.com </ul>
  26. 30. Demo Cake <ul>$ rhc-create-app -a cake -t php-5.3 $ rhc-ctl-app -a cake -e add-mysql-5.1 $ cd cake $ git remote add upstream -m master git://github.com/openshift/cakephp-example.git $ git pull -s recursive -X theirs upstream master $ git push http://cake-$your_domain.rhcloud.com </ul>
  27. 31. Demo Symfony <ul>$ rhc-create-app -a symfonyphp -t php-5.3 $ cd cake $ git remote add upstream -m master git://github.com/eschabell/openshift-symfony.git $ git pull -s recursive -X theirs upstream master $ git push http://sympfonyphp-$your_domain.rhcloud.com </ul>
  28. 32. Enterprise Flexibility? Auto Scaling Log Mgmt Databases Monitoring Automation Roll-backs, Upgrades Speed Deployment Provisioning
  29. 33. OpenShift Flex <ul><li>Setup Cloud Account
  30. 34. Provision Cloud Servers
  31. 35. Build Stack
  32. 36. Upload Application Code
  33. 37. Configure Components
  34. 38. Deploy
  35. 39. Performance Monitoring
  36. 40. Log Management
  37. 41. Auto-Scaling </li></ul>
  38. 42. Login Creds
  39. 43. Create cluster... check it out! Provision Events Clusters Servers
  40. 44. Deploy Application Name Version App Components
  41. 45. Add code Configure
  42. 46. Congrat's, your in the Cloud! Deploy code
  43. 47. Performance & Logs Trans levels Point-in-time Components Applications Search
  44. 48. Define Scaling Strategy How? What? Why?
  45. 49. Sign up, it's free! <ul><li>http://www.openshift .com – click “Try it!”
  46. 50. Example projects you can deploy now! </li><ul><li>https://www.github.com/openshift </li></ul><li>Help? </li><ul><li>IRC: freenode #openshift
  47. 51. Forums: http://www.redhat.com/openshift/forums
  48. 52. Email: openshift at redhat dot com </li></ul></ul>
  49. 53. Loving your hammer?

×