OpenShift for developers

By: Ben Pritchett
Updated: 7/6/2017

OpenShift container platform allows developers to quickly develop, host, and scale applications in a cloud environment. Developers can own and maintain their applications through production environments by using Kubernetes to provide a secure, robust and extendable manner for orchestrating applications, and OpenShift to further access management, build, and deploy those services.

This cheat sheet explains how to:

  • Build, deploy, and manage an application with OpenShift using step-by-step examples.

  • Understand how administrator tasks can impact developers.

  • Select commands to manage an application’s lifecycle, including resource management, cluster management, and operational commands.

 

Cheat Sheet Cover

Build with OpenShift Container now

 

 

View available OpenShift projects

Let's list out our current available projects (those that we have at least view access for):

$ oc get projects

If this is our first login and no one has added us to any existing projects, there shouldn't be any projects listed. Let's create a project (allowed by self-provisioner role to all authenticated users, in the default Openshift policy installation).

$ oc new-project myproject --display-name='My Project' --description='cool project owned by myuser'

Now using project "myproject" on server "https://openshift.example.com:443". To build a new example application on Ruby you can add applications to this project with the 'new-app' command. For example, try:

oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git

Run apps in a cloud environment with OpenShift Container now

 

Sample