A utility for building projects in OpenShift.
npm install os-build
-
DEBUG
- Enables debug logging. (For more information, see debug)
-
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.
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
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
MIT