...
1# Build operations
2
3This example program demonstrates the fundamental operations for working
4with
5[Build](https://docs.openshift.com/container-platform/3.7/dev_guide/builds/basic_build_operations.html)
6resources, such as `List builds`, `Retrieve details of a build` and `Trigger a build`.
7
8## Running this example
9
10Make sure you have an OpenShift cluster and `oc` is configured:
11
12```sh
13$ oc get nodes
14### Create a project
15$ oc new-project testproject
16### Create an app
17$ oc new-app https://github.com/sclorg/cakephp-ex
18$ oc get build
19NAME TYPE FROM STATUS STARTED DURATION
20cakephp-ex-1 Source Git@e04b8cc Complete 37 minutes ago 1m39s
21```
22
23Compile this example on your workstation:
24
25```sh
26$ go build -o examples/build/app ./examples/build/
27```
28
29Now, run this application on your workstation with your local kubeconfig file:
30
31```sh
32$ ./examples/build/app
33```
View as plain text