Skip to content

Set resource limits for BuildOpenshiftImage Stage #1126

@SHoen

Description

@SHoen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions