Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Using OpenShift PaaS


Published on

Published in: Technology, Business
  • Be the first to comment

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● Create application● Code● DeployUsing OpenShift to manage your applications in the cloud
  17. 17. Create an account● Goto● 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
  32. 32. Thank You