Top Banner
Deployments for the rest of us RootConf, Bangalore | Anurag Patel, Red Hat
21

Openshift: Deployments for the rest of us

Jan 13, 2015

Download

Documents

Anurag Patel

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Openshift: Deployments for the rest of us

Deployments for the rest of us

RootConf, Bangalore | Anurag Patel, Red Hat

Page 2: Openshift: Deployments for the rest of us

Agenda

● An overview of Openshift PaaS.● Command line client 'rhc'.● Deploying a sample app.● Application addons.● The Openshift shell.● Databases, logs, snapshots.

Page 3: Openshift: Deployments for the rest of us

Cloud Stack

Page 4: Openshift: Deployments for the rest of us

PaaS?

Page 5: Openshift: Deployments for the rest of us

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

Page 6: Openshift: Deployments for the rest of us

Languages

Page 7: Openshift: Deployments for the rest of us

Cartridges

Page 8: Openshift: Deployments for the rest of us

Scale and Profit!

Page 9: Openshift: Deployments for the rest of us
Page 10: Openshift: Deployments for the rest of us

Signup

Page 11: Openshift: Deployments for the rest of us

CLI

● # yum install rubygem-rhc

● $ gem install json_pure● $ gem install rhc

Page 12: Openshift: Deployments for the rest of us

Creating an App

● $ rhc app create -a memegram -t ruby-1.8

● $ git clone ssh://[email protected]/~/git/memegram.git/

● $ git remote add github [email protected]:gnurag/memegram.git

● $ git pull github master

Page 13: Openshift: Deployments for the rest of us

Deploying the app

● $ git push origin master

● View: https://memegram-rootconf.rhcloud.com

Page 14: Openshift: Deployments for the rest of us

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/

Page 15: Openshift: Deployments for the rest of us

Viewing metrics

● $ rhc app cartridge add -a memegram -c metrics-0.1

● View: https://memegram-rootconf.rhcloud.com/metrics/

Page 16: Openshift: Deployments for the rest of us

Inspecting logs

● $ rhc app tail -a memegram

Page 17: Openshift: Deployments for the rest of us

Openshift shell

● $ rhc domain show

● $ ssh [email protected]

Page 18: Openshift: Deployments for the rest of us

App Snapshots

● $ rhc app snapshot save -a memegram

● $ rhc app snapshot restore -a memegram --filepath memegram.tar.gz

Page 19: Openshift: Deployments for the rest of us

Port forwarding

● $ rhc-port-forward -a memegram

Page 20: Openshift: Deployments for the rest of us

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

Page 21: Openshift: Deployments for the rest of us

Thank you!

● Anurag <[email protected]>● IRC: devmodem● Twitter: @gnurag