Skip to content

Display better information when running 'oc' - #7502

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:cleanup_help
Feb 22, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
smarterclayton:cleanup_help

Conversation

@smarterclayton

Copy link
Copy Markdown
Contributor

Add a "welcome" type page to 'oc', and make 'oc help' shorter. Clean up
where certain commands are registered in 'oc help'. Add a few more
descriptions to 'oc types'.

[test]

$ oc
OpenShift Client

This client helps you develop, build, deploy, and run your applications on any OpenShift or
Kubernetes compatible platform. It also includes the administrative commands for managing a
cluster under the 'adm' subcommand.

To create a new application, login to your server and then run new-app:

  $ oc login https://myorigincluster.com
  $ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git

This will create an application based on the Docker image 'centos/ruby-22-centos7' that builds
the source code from GitHub. A build will start automatically, push the resulting image to the
registry, and a deployment will roll that change out in your application.

Once your application is deployed, use the status, describe, and log commands to see more about
the created components:

  $ oc status
  $ oc describe deploymentconfig ruby-hello-world
  $ oc logs dc/ruby-hello-world

To make this application visible outside of the cluster, use the expose command on the service
we just created to create a 'route' (which will connect your application over the HTTP port
to a public domain name).

  $ oc expose svc/ruby-hello-world
  $ oc status

You should now see the URL the application can be reached at.

To see the full list of commands supported, run 'oc help'.

@smarterclayton

Copy link
Copy Markdown
Contributor Author

@fabianofranz

Comment thread pkg/cmd/cli/cli.go Outdated
the source code at 'github.com/openshift/ruby-hello-world.git'. A build will start automatically and
a deployment will start as soon as the build finishes.
the source code from GitHub. A build will start automatically, push the resulting image to the
registry, and a deployment will roll that change out in your application.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"...roll that change out in your project." maybe?

@fabianofranz

Copy link
Copy Markdown
Contributor

Minor nits, LGTM

Add a "welcome" type page to 'oc', and make 'oc help' shorter. Clean up
where certain commands are registered in 'oc help'. Add a few more
descriptions to 'oc types'.
@smarterclayton

Copy link
Copy Markdown
Contributor Author

Updated, [merge]

On Sun, Feb 21, 2016 at 7:36 PM, Fabiano Franz [email protected]
wrote:

Minor nits, LGTM

—
Reply to this email directly or view it on GitHub
#7502 (comment).

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to f24f6a3

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5061/) (Image: devenv-rhel7_3504)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to f24f6a3

openshift-bot pushed a commit that referenced this pull request Feb 22, 2016
@openshift-bot
openshift-bot merged commit 6061189 into openshift:master Feb 22, 2016
@openshift-bot

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants