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

[RN] New URL parameter to override the workspace `image`

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • Hide
      = URL parameter for a container image

      With this update, you can add an `image` parameter for the path to a container image as part of a URL for starting a new workspace in some situations:

      * The Git repository contains no devfile, and you want to start a new workspace with this container.

      * The Git repository contains a devfile, and you want this container image to run instead of the first `container` `image` listed in the `components` section of the devfile.

      You can use the following URL syntax with this parameter:

      [source,subs="+quotes"]
      ----
      https://devspaces-__<openshift_deployment_name>__.__<domain_name>__/f?url=__<git_repository_url>__&image=__<url_to_custom_developer_image>__
      ----

      Show
      = URL parameter for a container image With this update, you can add an `image` parameter for the path to a container image as part of a URL for starting a new workspace in some situations: * The Git repository contains no devfile, and you want to start a new workspace with this container. * The Git repository contains a devfile, and you want this container image to run instead of the first `container` `image` listed in the `components` section of the devfile. You can use the following URL syntax with this parameter: [source,subs="+quotes"] ---- https://devspaces-__<openshift_deployment_name>__.__<domain_name>__/f?url=__<git_repository_url>__&image=__<url_to_custom_developer_image>__ ----
    • Enhancement
    • Done

      Synced from eclipse/che issue

      https://github.com/eclipse/che/issues/21990

      Is your enhancement related to a problem? Please describe

      After testing Che with the universal developer image, developers want to use a custom image. To do that they currently need to create or edit a devfile.

      But creating a new devfile + pushing it to the git repo may be overkill if the need is just to replace the default image.

      Describe the solution you'd like

      Add a new URL parameter named image to overrides:

      • if no devfile is specified in the project CheCluster field devEnvironments.defaultComponents[0].container.image
      • if a devfile is specified: components[0].container.image

              rhn-ecs-pkovar Petr Kovar (Inactive)
              jiralint.codeready Bot Codeready
              Shmaraiev Oleksandr Shmaraiev Oleksandr
              Max Leonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: