build

command
v3.9.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

Build operations

This example program demonstrates the fundamental operations for working with Build resources, such as List builds, Retrieve details of a build and Trigger a build.

Running this example

Make sure you have an OpenShift cluster and oc is configured:

$ oc get nodes
### Create a project
$ oc new-project testproject
### Create an app
$ oc new-app https://github.com/openshift/cakephp-ex
$ oc get build
NAME           TYPE      FROM          STATUS     STARTED          DURATION
cakephp-ex-1   Source    Git@e04b8cc   Complete   37 minutes ago   1m39s

Compile this example on your workstation:

$ go build -o examples/build/app ./examples/build/

Now, run this application on your workstation with your local kubeconfig file:

$ ./examples/build/app

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL