Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set resource limits for BuildOpenshiftImage Stage #1126

Open
SHoen opened this issue Jun 6, 2024 · 1 comment
Open

Set resource limits for BuildOpenshiftImage Stage #1126

SHoen opened this issue Jun 6, 2024 · 1 comment

Comments

@SHoen
Copy link
Contributor

SHoen commented Jun 6, 2024

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

@SHoen
Copy link
Contributor Author

SHoen commented Jun 6, 2024

@tbugfinder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant