Using OpenShift PaaS

3,444 views

Published on

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,444
On SlideShare
0
From Embeds
0
Number of Embeds
2,074
Actions
Shares
0
Downloads
50
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Using OpenShift PaaS

  1. 1. Using OpenShift Platform as a Service Anuchit Chalothorn anuchit@redlinesoft.netLicensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
  2. 2. Agenda● What is OpenShift ?● What is IaaS, PaaS, SaaS ?● Why use PasS ?● Whats supported ?● How much it cost?● Getting start with OpenShift
  3. 3. What is OpenShift?OpenShift is Red Hats Cloud Computing Platform as aService (PaaS) offering. Code Deploy Enjoy
  4. 4. Kind of like Amazon, right? Nope
  5. 5. What is Infrastructure as a Services● Network, Storage and Compute offered on-demand service● Basically servers in the cloud● You are still on the hook to config and manage the cloud & stack● Example : Amazon EC2
  6. 6. What is Platform as a Services● Its an application platform● Basically, app runtime environment in the cloud● PaaS configures & manages the Cloud & stack for you● Example: OpenShift
  7. 7. What is Software as a Services● Its an on-demand application● Nothing to install and configure● Example: Saleforce, Gmail
  8. 8. So, why should I use PaaS● Realize the benefits of the cloud quickly● Let the PaaS configure, manage & scale the stack● Make deployment to the cloud easy● Focus on your app & users not the stack
  9. 9. Whats supported ?
  10. 10. How much does it cost?● Free 3 gears● 512 MB RAM and 1GB Storage instance● Need more resource just ask
  11. 11. Pricing*
  12. 12. What is gears?A gear is a resource constrained container that runs one ormore user-specified software stacks, also known ascartridges. Each gear has a limited amount of RAM anddisk space.
  13. 13. Scale easy
  14. 14. Estimate the needs and costs
  15. 15. Getting start with OpenShift
  16. 16. Getting start with OpenShift● Get an account at openshift.com● Create application● Code● DeployUsing OpenShift to manage your applications in the cloud
  17. 17. Create an account● Goto http://www.openshift.com● Sign up an account
  18. 18. Install client tools● Ruby 1.8.7+● Git$ gem install rhcClient installation guide
  19. 19. Setup your keys and domain$ rhc setup
  20. 20. Show your domain info$ rhc domain show
  21. 21. List available cartridges$ rhc cartridge list
  22. 22. Create your application$ rhc app create <app_name> <cartridge>eg: create app with PHP 5.3$ rhc app create myapp php-5.3
  23. 23. Add cartridge to your app$ rhc cartridge add -a <app_name> -c <cartridge>eg: add MySQL cartridge$ rhc cartridge add -a myapp -c mysql-5.1
  24. 24. Create scalable app$ rhc app create -s myapp php-5.3the "-s" is for scale, some cartridge may notscale you should check in the web console.
  25. 25. Scale configureOpenShift provide automatic scaling but youcan use a manual scale to fit for need.$ rhc cartridge scale <cartridge> -a <app_name> --min <min_gears> --max <max_gears>
  26. 26. Deploying your applicationEach app has it own git repository. You canclone, merge, push or pull your code from therepository. If youre new to Git try this.
  27. 27. Making change to your appIf you create an application from the webconsole, youll need to tell Git to clone therepository.$ git clone <git_url>
  28. 28. Making change to your appOnce you make changes, youll need to add and committhose changes. Git requires that each commit have amessage to describe it.$ git add .$ git commit -m "check in an application"
  29. 29. Making change to your appFinally, youre ready to send your changes to yourapplication$ git pushLearn more about using Git
  30. 30. Domain aliasYou can specify meaningful DNS names for your OpenShiftapplications so that you can use your own DNS entries.$ rhc alias add <app_name> <your_domain>
  31. 31. Working with GitHubYou can merge your project with GitHub by add the remoterepository then pull, merge code to any repository.$ git remote add github git@github.com:user/repo.git
  32. 32. Thank You

×