3.0.1 • Published 7 years ago

os-build v3.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

os-build

A utility for building projects in OpenShift.

Installing

npm install os-build

Environment

  • DEBUG - Enables debug logging. (For more information, see debug)

Commands

  • clean - Cleans any images created by the build.
  • clone - Clones the source code to a pod.
  • build - Performs a build of the source code.
  • runtime-build - Performs a runtime container build.
  • tag - Tags the runtime image.

Usage

os-build \
    --command clone \
    --namespace lab \
    --registry 172.30.53.244:5000 \
    --api-server https://10.2.2.2:8443 \
    --token $(oc whoami -t) \
    --repo https://github.com/github1/smerge.git \
    --build-name smerge \
    --build-number 4

build.yaml

The build.yaml file informs the builder how to perform the build for the project. If a build.yaml file is present in the projects source code it will take precedence. Attributes which are not present are loaded from templates based on the detected platform for the project - e.g. the nodejs platform defaults will take effect if a package.json is found in the project.

Commands executed during builds can be set by overriding individual properties in the project specific build.yaml:

platform: nodejs
builder:
    install: npm run install && npm run some-task

License

MIT

3.0.1

7 years ago

3.0.0

7 years ago

2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago