Shared Jenkins library which all ODS projects & components use - provisioning, SonarQube code scanning, Nexus publishing, OpenShift template based deployments and repository orchestration
Apache License 2.0
69
stars
57
forks
source link
Set resource limits for BuildOpenshiftImage Stage #1126
Is your feature request related to a problem? Please describe.
Docker build fails during odsComponentStageBuildOpenShiftImage due to resource constrains of the build config.
Desired Feature | Set resources as optional parameter in build stage
Set the resource limits for the build config in the Jenkinsfile of the project as an additional param when calling the build.
e.g.
odsComponentStageBuildOpenShiftImage(
context, [resourceName: "${context.componentId}-api", dockerDir: "myfolder/-api",
buildArgs: [],
cpuLimit: "300m", memoryLimit: "5Gi",
] )
Alterantive | Increase hard coded values
As alternative we could increase the hard coded values in the following code
here
Is your feature request related to a problem? Please describe. Docker build fails during odsComponentStageBuildOpenShiftImage due to resource constrains of the build config.
Desired Feature | Set resources as optional parameter in build stage Set the resource limits for the build config in the Jenkinsfile of the project as an additional param when calling the build. e.g. odsComponentStageBuildOpenShiftImage( context, [resourceName: "${context.componentId}-api", dockerDir: "myfolder/-api", buildArgs: [], cpuLimit: "300m", memoryLimit: "5Gi", ] )
Alterantive | Increase hard coded values As alternative we could increase the hard coded values in the following code here