Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-798

When building registries, check if dependent images exist for the given arch and exclude from registry if not found w/ logged warning

XMLWordPrintable

    • RHDP-271 - Maintain existing portfolio commitments

      When building registries, we should use skopeo to check if dependent images exist for the given arch.

      If not found:

      • a warning should be logged in the build
      • a README should be written in the registry plugin/devfile folder as replacement for the yaml
      • build should continue

      This would allow us to more easily drop out functionality that doesn't (yet, or ever) exist for a given platform without having to fork the registry for each supported arch (eg., dotnet on Z)

      For devfile registry, script should run something like ./build/scripts/remove-unavailable-containers.sh devfiles/

      Similar script for plugin registry would then do something like ./build/scripts/remove-unavailable-containers.sh v3/

      Note also that checking registry.redhat.io might not be a sufficient check since some images may exist in OSBS registry but not be public yet... so like in this script:

      https://github.com/redhat-developer/codeready-workspaces/blob/master/dependencies/che-plugin-registry/build/scripts/write_image_digests.sh

      You might need an extra processing step to fall back to an internal registry as a second check:

      https://github.com/redhat-developer/codeready-workspaces/blob/master/dependencies/che-plugin-registry/build/scripts/write_image_digests_alternate_urls.sh

      (why two files? easier to split upstream from downstream code)

              kcrane@redhat.com Kirk Crane
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: