This document provides instructions for setting up an OpenShift application using the command line tools. It outlines downloading the Ruby gems and rhc client, creating a domain and application, adding additional cartridges if needed, pushing code changes to trigger builds, and logging into the server to view environment variables.
Exploring the Future Potential of AI-Enabled Smartphone Processors
Open shift intro for Philly PUG
1. ###Sign up
Web UI
###Install the command line tools (you can use the web for some but not all)
###Instructions
https://openshift.redhat.com/app/getting_started
###Basically install Ruby 1.9.3 (with Gems) then
gem install rhc
###Get the client tools working with the stuff you did on the web
rhc setup
###Create a domain
rhc domain create -n <yourDomainName> -l <your login> -p <your password>
###Create an application
rhc app create -t <one from below> -a <app name>
######nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10
###Add a cartridge if needed
rhc app cartridge add -a <app from above> -c <one from below>
######mongodb-2.0, cron-1.4, mysql-5.1, postgresql-8.4, haproxy-1.4, 10gen-mms-agent-0.1,
phpmyadmin-3.4, metrics-0.1, rockmongo-1.1, jenkins-client-1.4
###Make changes in your git repo
git add .
git commit -m "my first commit"
git push
###(bonus) SSH into your “server” and look at env variables
ssh
ENV
###WIN!