-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make configurable images in both plugin and devfile registry #14693
Comments
If we implement the idea of injecting plugins directly into Theia runtime without the need for theia-runtime-endpoint... do we obviate the need for this? Also what about these images, from https://github.com/eclipse/che-devfile-registry/blob/master/arbitrary-users-patch/base_images
Will this approach work for overriding those? #productization |
FWIW the current simple implementation of this is to sed-replace all references to with a user-defined https://github.com/redhat-developer/codeready-workspaces/blob/master/dependencies/che-plugin-registry/scripts/replace_container_repos.sh Obviously my approach is flawed and requires manual effort. :) Mario's approach is by far better because it means we can inject these changes to a running container image without having to rebuild and republish it. \o/ |
@nickboldt no. We still need it.
I have discussed with @slemeur and it's simpler to replace the registries hostnames and repositories only. I have updated this issue description. |
Note that for testing containers before they're published to RHCC/RHIO, we will need this functionality in BOTH the plugin registry and the devfile registry so that any/all containers can be overridden to use a different base registry URL/repo/imagename:tag. Then we can override |
PR for plugin registry: eclipse-che/che-plugin-registry#245 |
PR for devfile registry: eclipse-che/che-devfile-registry#110 |
PRs merged |
Is your enhancement related to a problem? Please describe.
In Air Gap mode a user needs to start a workspace using images from an internal/private container registry (not
docker.io
, notquay.io
).Che server and other components images can be configured using che.properties (and config maps).
But editors and plugins sidecars images are not currently configurable: they are hardcoded with the plugin registry. The same is true to the stack images in the devfile registry.
Describe the solution you'd like
A user should be able to configure the plugin sidecars and the sample stack images URL and the repository.
Additional context
A possible solution would be to use a configmap and a bash script used as entrypoint that replaces the images.
The configmap would look like:
Used in the deployment yaml as
And the containers entrypoint should call a script that replaces the images url and repo in the index.json and the plugins meta.yaml.
The text was updated successfully, but these errors were encountered: