Skip to content

Add devfile license to devfile registry container images #1638

@michael-valdron

Description

@michael-valdron

Which area is this issue related to?

/area ci
/area registry

Issue Description

The ecosystem-cert-preflight-checks testing during the Konflux pipeline runs requires that images are built with a /licenses directory that contains all the applicable licenses to the container images.

"failed": [
    {
        "name": "HasLicense",
        "elapsed_time": 0,
        "description": "Checking if terms and conditions applicable to the software including open source licensing information are present. The license must be at /licenses",
        "help": "Check HasLicense encountered an error. Please review the preflight.log file for more information.",
        "suggestion": "Create a directory named /licenses and include all relevant licensing and/or terms and conditions as text file(s) in that directory.",
        "knowledgebase_url": "https://access.redhat.com/documentation/en-us/red_hat_software_certification/2024/html-single/red_hat_openshift_software_certification_policy_guide/index#assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction",
        "check_url": "https://access.redhat.com/documentation/en-us/red_hat_software_certification/2024/html-single/red_hat_openshift_software_certification_policy_guide/index#assembly-requirements-for-container-images_openshift-sw-cert-policy-introduction"
    }
],

Acceptance Criteria

  • Add step to build script to include the Apache license into the devfile-index-base container image
    • We can reuse the devfile-index-base license when building devfile-index
  • Add step to build script to include the Apache license into the registry-viewer container image
  • Add step to build script to include the Apache license into the oci-registry container image

Metadata

Metadata

Labels

area/ciarea/registryDevfile registry for stacks and infrastructure

Type

No type

Projects

Status

Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions