Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Openshift

 Openshift

Openshift: Deployments for the rest of us

An overview of Red Hat's Openshift PaaS. OpenShift is Red Hat's free, auto-scaling Platform as a Service (PaaS) for applications.

This presentation walks through an introduction to Openshift and shows how to get Ruby, PHP, Perl and Python applications up online without worrying about the underlying infrastructure.

Anurag

May 26, 2012
Tweet

More Decks by Anurag

Other Decks in Programming

Transcript

  1. Agenda • An overview of Openshift PaaS. • Command line

    client 'rhc'. • Deploying a sample app. • Application addons. • The Openshift shell. • Databases, logs, snapshots.
  2. 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
  3. CLI • # yum install rubygem-rhc • $ gem install

    json_pure • $ gem install rhc
  4. 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 [email protected] :gnurag/memegram.git • $ git pull github master
  5. Deploying the app • $ git push origin master •

    View: https://memegram-rootconf.rhcloud.com
  6. 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/
  7. Viewing metrics • $ rhc app cartridge add -a memegram

    -c metrics-0.1 • View: https://memegram- rootconf.rhcloud.com/metrics/
  8. Openshift shell • $ rhc domain show • $ ssh

    facefeed@memegram- rootconf.rhcloud.com
  9. App Snapshots • $ rhc app snapshot save -a memegram

    • $ rhc app snapshot restore -a memegram --filepath memegram.tar.gz
  10. 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