Openshift: Deployments for the rest of us

472 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
472
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Openshift: Deployments for the rest of us

  1. 1. Deployments for the rest of usRootConf, Bangalore | Anurag Patel, Red Hat
  2. 2. Agenda● An overview of Openshift PaaS.● Command line client rhc.● Deploying a sample app.● Application addons.● The Openshift shell.● Databases, logs, snapshots.
  3. 3. Cloud Stack
  4. 4. PaaS?
  5. 5. Openshift Origin● Open source components.● Run on your own Laptop, premises, datacenter.● Deploy your own SaaS on your own PaaS running on your own IaaS.● https://github.com/openshift/crankcase
  6. 6. Languages
  7. 7. Cartridges
  8. 8. Scale and Profit!
  9. 9. Signup
  10. 10. CLI● # yum install rubygem-rhc● $ gem install json_pure● $ gem install rhc
  11. 11. Creating an App● $ rhc app create -a memegram -t ruby-1.8● $ git clone ssh://facefeed@memegram- rootconf.rhcloud.com/~/git/memegram.git/● $ git remote add github git@github.com :gnurag/memegram.git● $ git pull github master
  12. 12. Deploying the app● $ git push origin master● View: https://memegram-rootconf.rhcloud.com
  13. 13. Adding cartridges● $ rhc app cartridge list -a memegram● $ rhc app cartridge add -a memegram -c mongodb-2.0● $ rhc app cartridge add -a memegram -c rockmongo-1.1● View: https://memegram- rootconf.rhcloud.com/rockmongo/
  14. 14. Viewing metrics● $ rhc app cartridge add -a memegram -c metrics-0.1● View: https://memegram- rootconf.rhcloud.com/metrics/
  15. 15. Inspecting logs● $ rhc app tail -a memegram
  16. 16. Openshift shell● $ rhc domain show● $ ssh facefeed@memegram- rootconf.rhcloud.com
  17. 17. App Snapshots● $ rhc app snapshot save -a memegram● $ rhc app snapshot restore -a memegram --filepath memegram.tar.gz
  18. 18. Port forwarding● $ rhc-port-forward -a memegram
  19. 19. What next?● Signup: https://openshift.redhat.com/app/● Github: https://github.com/openshift/● Userguide: http://docs.redhat.com● IRC: #openshift● Twitter: @openshift● Memegram: https://github.com/gnurag/memegram
  20. 20. Thank you!● Anurag <apatel@redhat.com>● IRC: devmodem● Twitter: @gnurag

×