question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable community devfiles and plugins in Dev Sandbox

See original GitHub issue

Is your enhancement related to a problem? Please describe.

Currently there is no way to offer community devfiles and plugins in Dev Sandbox without shipping those devfiles/plugins with CRW directly. Of course that’s not really an option, because the maintenance burden is too high and it would be a big duplication of work.

Describe the solution you’d like

Instead, we can provide an upstream offering of devfiles and plugins by adding metadata to devfiles (such as tags like upstream or community), as well as registryUrl fields within those devfiles that point to a published version of the upstream che-plugin-registry. The registryUrl fields would ensure that the upstream/community devfiles are only using upstream plugins, and thus avoiding conflicts with downstream plugins that have the same id.

New functionality in the dashboard would enable filtering on the Getting Started page, so that Dev Sandbox users could toggle between upstream/community devfiles, and more stable Red Hat supported ones.

Eventually we can also extend this system to filter out devfiles based on other metadata sets, such as:

  • devfiles which are only available on certain architectures (part of #19239)
  • devfiles which are not airgap friendly
  • devfiles which target a certain language/area of interest

Describe alternatives you’ve considered

N/A

Additional context

Here is a list of the upstream issues which need to completed, in order, for this epic:

  • Publish a versioned che-plugin-registry release to surge.sh #19268
  • Add registryUrls in the devfile registry #19269

There is also a downstream ticket for this epic: https://issues.redhat.com/browse/CRW-1437

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ericwillcommented, Mar 29, 2021

I believe we have rudimentary support for this: https://github.com/eclipse/che/issues/13961

From the PR: This PR allows multiple devfile registries to be specified as a space separated list, for example in values.yml we can have:

che: 
  workspace: 
    devfileRegistryUrl: "https://che-devfile-registry.openshift.io/ https://raw.githubusercontent.com/kabanero-io/codewind-templates/master/"

The registry location is then stored so that the devfile can be read from the correct location.

0reactions
ericwillcommented, Jun 4, 2021

I am closing this epic since we have community devfiles and plugin on Devsandbox. Removing the 2 remaining issues from the description:

* [ ]  Add metadata to devfiles #18473

* [ ]  Filter out devfiles from the dashboard based on metadata tags #19270

Why? What we have now is the bare minimum and from a usability POV it’s not great. One of the main points of this epic was to introduce the filtering system as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize Red Hat CodeReady Workspaces with devfile ...
In this article, I show you how to use a custom devfile registry to customize a workspace for C++ development. Once that's done,...
Read more >
Can't enable Communities - Salesforce Developers
Can't enable Communities. I have Enterprise Edition, and my Profile is System Administrator. I just refreshed my sandbox.
Read more >
Devfile v2 and IDE plug-ins - Eclipse Che Blog
How are IDE plug-ins handled with devfile v2. ... To allow other projects to use a common definition, devfile has moved out of...
Read more >
Red Hat Breaks Down Barriers to Building Applications for ...
Developer Sandbox for Red Hat OpenShift provides a private ... that start without a devfile, a list of recommended plug-ins will be created ......
Read more >
Eclipse Che hosted by Red Hat
The new service is part of the Developer Sandbox for Red Hat OpenShift ... Dev Spaces product-specific, as well as Eclipse Che community...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found