Comments (14)
The quick fix for bringing Node.js and all required libraries:
FROM docker.io/debian:buster
USER 0
RUN apt-get update && apt-get install -y curl && apt-get clean
ENV NODE_VERSION=v18.18.2
ENV NODE_DISTRO=linux-x64
ENV NODE_BASE_URL=[https://nodejs.org/dist/${NODE_VERSION}](https://nodejs.org/dist/$%7BNODE_VERSION%7D)
RUN curl -fsSL ${NODE_BASE_URL}/node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz -o node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz \
&& mkdir -p /usr/local/lib/nodejs \
&& tar -xzf node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz -C /usr/local/lib/nodejs \
&& rm node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz
ENV VSCODE_NODEJS_RUNTIME_DIR=/usr/local/lib/nodejs/node-${NODE_VERSION}-${NODE_DISTRO}/bin
ENV PATH=${VSCODE_NODEJS_RUNTIME_DIR}:$PATH
from che.
сс: @RomanNikitenko
from che.
@ibuziuk
I provided support for ubi9-based containers, but no one worked on ubuntu
support.
So, I would say:
- at the current step it's expected that starting IDE doesn't work for
ubuntu
- I'm not sure
bug
label is suitable for this issue as AFAIK we didn't have it working previously
from che.
How about images provided by us PizzaFactory project ?
We bake Debian, Ubuntu, and Alpine based images almost everyday.
https://github.com/pizzafactory-contorno
They are not UBI-like but only specific tools are contained (similar to ancient versions of che-images).
Even though I suppose you can make your swiss-army-knife from our base images.
https://hub.docker.com/r/pizzafactory0contorno/piatto
from che.
@monaka
Hello!
We bake Debian, Ubuntu, and Alpine based images almost everyday.
They are not UBI-like but only specific tools are contained
I think @olexii4 means that Che-Code should start in a vanilla
ubuntu container, so like Che-Code
should bring Node.js and all required libraries to a user's container.
from che.
Something similar I described in another issue for ubuntu #22183 (comment)
from che.
I think @olexii4 means that Che-Code should start in a vanilla ubuntu container,
Hmm, but the quick fix that is shown by @olexii4 isn't a vanilla image...
so like Che-Code should bring Node.js and all required libraries to a user's container.
I'm not sure why this plan fixes the issue... It might be that I should dig a little deeper.
from che.
but the quick fix that is shown by @olexii4 isn't a vanilla image...
I would say - it's a workaround
from che.
@RomanNikitenko I think I see the point of this issue.
che-code
should provide /checode/checode-linux-libc/{ubuntu|deibian|brah-brah}
, right?
from che.
che-code should provide /checode/checode-linux-libc/{ubuntu|deibian|brah-brah}, right?
We use that approach for ubi8/ubi9.
In fact, to run Che-Code in a user's container we need:
- Node.js
- Che-Code assembly
- some libraries are required for Node.js + VS Code dependencies
At starting a workspace we copy Node.js + Che-Code assembly to a user's container.
The problem is: Node.js relies on some shared libraries:
For example, it's possible to start a workspace for docker.io/ubuntu: 22.04
as a user's container.
It means that docker.io/ubuntu: 22.04
has required libraries.
At the same time it's impossible to start a workspace for the docker.io/ubuntu:20.04
based container - some libraries are absent in the image/container.
Node.js can not be run if a library is absent in a user's container.
So, we need a solution that will provide all required libraries to a user's container.
from che.
So, we need a solution that will provide all required libraries to a user's container.
Well. And it can be solved by ...
- Adding some shared libs to
/checode/checode-linux-libc/{Ubuntu|...}/lib
. - Adding a path
/checode/.../lib
toLD_LIBRARY_PATH
.
from che.
@monaka
We use such approach: https://github.com/che-incubator/che-code/blob/a711ca09a1e0a6e0ac3c2a88f17be2e5f6de679a/build/scripts/entrypoint-volume.sh#L94
from che.
I read che-incubator/che-code#332 also.
I suppose I can add some contributions to che-code, as some of my customers will want to use Ubuntu based images.
BTW... I guess there are similar issues in jetbrains-editor-images potentially, right?
from che.
I suppose I can add some contributions to che-code, as some of my customers will want to use Ubuntu based images.
You are very welcome!
BTW... I guess there are similar issues in jetbrains-editor-images potentially, right?
If I'm not mistaken, it's an example of such problem:
#22847 (comment)
from che.
Related Issues (20)
- User Preference of Container Registry as mountable secret to inject authentication for podman command line
- Update che-docs preview to use https instead of http HOT 1
- Has anybody a recent Eclipse Che release (i.e. a release with release date in 2023 or 2024) up-and-running on Azure Cloud? HOT 18
- Support URL params inside the url of getting started samples definition
- Failure to build che-code and/or universal developer image due to kubernetes yum repo outage HOT 3
- Verify functionality of each sample from devfile.io on Che HOT 12
- VS Code editor doesn't start in some containers
- Can not start a workspace from Bitbucket server repository via OAuth2 HOT 1
- Error when start a workspace with editor devfile that is published on surge.sh
- Increase space for GitHub actions builder on udi space
- How to change expired TLS certificate in Eclipse Che HOT 5
- Tooling container `$PATH` is overridden HOT 3
- Definition of the Che-Code editor in the ./che/che-editor.yaml file is ignored HOT 12
- Eclipse Che: Workspace is not getting created - DevWorkspace failed to progress past step 'Waiting for editor to start' for longer than timeout (300s) HOT 6
- Eclipse Che: How to set workspace default resources (memory, CPU) HOT 4
- ERR_CONNECTION_TIMED_OUT after successfull deployment on Azure HOT 6
- Che-Code automatic rebase against upstream VS Code is failed HOT 1
- ERR_CONNECTION_TIMED_OUT after a successful install on minikube (Win11Pro, driver=docker) HOT 5
- Eclipse Che: unable to install Eclipse Che with helm chart in k8s HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from che.