build

command
v0.0.0-...-6c851f4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 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/sclorg/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:

$ make examples

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