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

Plugin registry lost the embedded resources required for offline mode and disconnected network installation

    XMLWordPrintable

Details

    Description

      Plugin registry lost the embedded resources required for offline mode and disconnected network installation.

      This might be a consequence of the fix of previous issue: https://issues.redhat.com/browse/CRW-784

      he plugin registry is not offline anymore. In other terms it refers to the vscode extension files at their externa locations, instead of pointing to embedded vsix files with relative URLs.
      For example the quarkus meta.yaml (https://plugin-registry-david-test.apps.test-ocp43.codereadyqe.com/v3/plugins/redhat/quarkus-java11/latest/meta.yaml) contains this:

      apiVersion: v2
      publisher: redhat
      name: quarkus-java11
      version: latest
      type: VS Code extension
      displayName: Quarkus, Maven, Gradle and Java 11 Language Support
      title: Quarkus, Java 11, Maven, and Gradle Tools by Red Hat
      description: Support for Quarkus, Maven, Gradle. Java Linting, Intellisense, formatting,
        refactoring, debugging, and language server.
      icon: https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/master/dependencies/che-plugin-registry/resources/images/default.svg?sanitize=true
      repository: https://github.com/redhat-developer/vscode-quarkus
      category: Language
      firstPublicationDate: '2020-02-12'
      spec:
        containers:
          - image: "registry.redhat.io/codeready-workspaces/plugin-java11-rhel8@sha256:21cf498dbfb24cda991cd8612130f54b06b9281823df8a7a0d437f84d3292751" # tag: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8:2.1
            name: vscode-quarkus
            memoryLimit: 3500Mi
            args:
              - sh
              - -c
              - ${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}
            volumes:
              - mountPath: /home/jboss/.m2
                name: m2
              - mountPath: /home/jboss/.gradle
                name: gradle
        extensions:
          - https://download.jboss.org/jbosstools/vscode/3rdparty/vscode-java-debug/vscode-java-debug-0.24.0.vsix
          - https://download.jboss.org/jbosstools/static/jdt.ls/stable/java-0.57.0-2029.vsix
          - https://download.jboss.org/jbosstools/vscode/stable/vscode-quarkus/vscode-quarkus-1.3.0-242.vsix
      latestUpdateDate: "2020-04-06"
      
      

      See the absolute URLs of the extensions.
      That wouldn't work in disconnected network scenarios.

      As a comparison, here is the same meta.yaml in registry.stage.redhat.io (before the fix for issue https://issues.redhat.com/browse/CRW-784):

      ╰─ docker run --rm --entrypoint /bin/bash registry.stage.redhat.io/codeready-workspaces/pluginregistry-rhel8:2.1 -c "cat v3/plugins/redhat/quarkus-java11/latest/meta.yaml"                                                            
      apiVersion: v2
      publisher: redhat
      name: quarkus-java11
      version: latest
      type: VS Code extension
      displayName: Quarkus, Maven, Gradle and Java 11 Language Support
      title: Quarkus, Java 11, Maven, and Gradle Tools by Red Hat
      description: Support for Quarkus, Maven, Gradle. Java Linting, Intellisense, formatting,
        refactoring, debugging, and language server.
      icon: https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/master/dependencies/che-plugin-registry/resources/images/default.svg?sanitize=true
      repository: https://github.com/redhat-developer/vscode-quarkus
      category: Language
      firstPublicationDate: '2020-02-12'
      spec:
        containers:
          - image: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8:2.1
            name: vscode-quarkus
            memoryLimit: 3500Mi
            args:
              - sh
              - -c
              - ${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}
            volumes:
              - mountPath: /home/jboss/.m2
                name: m2
              - mountPath: /home/jboss/.gradle
                name: gradle
        extensions:
          - relative:extension/resources/download.jboss.org/jbosstools/vscode/3rdparty/vscode-java-debug/vscode-java-debug-0.24.0.vsix
          - relative:extension/resources/download.jboss.org/jbosstools/static/jdt.ls/stable/java-0.57.0-2029.vsix
          - relative:extension/resources/download.jboss.org/jbosstools/vscode/stable/vscode-quarkus/vscode-quarkus-1.3.0-242.vsix
      latestUpdateDate: "2020-04-01"
      

      Attachments

        Activity

          People

            nickboldt Nick Boldt
            dfestal David Festal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: