os-build

3.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i os-build

Weekly Downloads

27

Version

3.0.1

License

MIT

Last publish

Collaborators

  • github1