-
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
Support running VS Code in the containers that don't include the pre-requisites #21778
Comments
The workaround for the terminal issue is setting the |
It turned out Che-Code's entrypoint failed to patch the |
The arbitrary user that runs the container doesn't have write privileges on And in general it's a good practice deny write access to Note to self:
|
Today I faced with the error at starting a workspace:
For the Definition for my
My editor starts on the
I was able to fix the problem by: |
@l0rd I would like to know your opinion here. |
@RomanNikitenko the requirement is that the container has to be non terminating. From the documentation:
|
In fact the devfile in the devfile registry has: - container:
(...)
image: registry.access.redhat.com/ubi9/go-toolset:1.18.9-14
args: ['tail', '-f', '/dev/null'] |
Images in registry.devfile.io without nodejs (script and full output): $ ./tests/check_nodejs.sh |
Currently VS Code has a requirement: Node.js version should be >=16.17.x and <17 . But I guess some images have 18 version. |
The conclusion is that solving this issue is critical for #20251 and there is no workaround. |
About problems with terminal. I've added some logic that detects: The first option is: The second option is:
As result user has a modified file in his project. Maybe it makes sense to do it for This repo/branch is configured to use editor with my changes for testing: https://github.com/RomanNikitenko/web-nodejs-sample/tree/test-ubi8-nodejs-18. Use_sh_as_default.mp4open_settings.mp4 |
@l0rd About the terminal problem:
|
Note:
|
Has anyone tested whether using an Execution Environment container image for Ansible Platform works well? The idea is to use a built EE for the ansible developers at a customer so they start from the right place with the right ansible-core, etc. |
@ansiblejunky this is a good question. An ansible example, based on the EE image, has been added in the latest version of OpenShift Dev Spaces. You can give it a try at https://workspaces.openshift.com (please open a separate issue if there something that doesn't work properly using that example). |
I only see
I'm accessing Dev Spaces using the Developer Sandbox, so maybe that one is not updated to the latest DevSpaces yet? |
Ok, I forked the repo And when I use this repo, I get these errors when trying to spin up the workspace:
|
@ansiblejunky I have created a separate issue #22369. |
We just had a discussion with @RomanNikitenko and decided that a pragmatic solution is to build a new versions of che-code based on ubi9 nodejs. We already build a
|
I have a draft for the solution that is described in the comment above. I tested it for few
It works well for those images. I'm looking for a way how to resolve this problem. |
I changed the way Node JS is provided and updated my draft PR. |
Wonderful work, thank you @RomanNikitenko |
@ibuziuk Can we close the current issue |
I think it makes sense to close it and open separate issues for particular images that are not supported atm |
Depends on:
Is your task related to a problem? Please describe
Currently, Che-Code works perfectly in a UDI8-based container.
But, as a user, I should be able to run the Che-Code editor in my own container which, ideally, can be based on any image.
E.g.:
maven:3.8.6-openjdk-18
,registry.access.redhat.com/ubi9/ubi
, etc.For example, if I run Che-Code in a DevWorkspace created from the following Devfile:
Che-Code starts well, as it brings the Node.js runtime copied into the dedicated volume. But there's a problem when opening a terminal:
The terminal process "/sbin/nologin" failed to launch (exit code: 1).
Some logs from the container:
Describe the solution you'd like
It looks like the only problem we should solve it's opening the VS Code terminal. But need to check if other functionality works well.
Describe alternatives you've considered
No response
Additional context
Running Che-Code in a UBI9-based container is problematic as well:
See for more details at #21629.
Currently, there's a workaround described in https://github.com/che-incubator/che-code/tree/main/build/dockerfiles.
It also requires a more stable solution.
The text was updated successfully, but these errors were encountered: