Repository navigation
Running a custom theia image(coffee-editor) in theia-cloud #74
|
Hi, I setup theia-cloud according to the getting started guide for minikube (which was really straightforward btw, kudos for that!). But I still get the blueprint theia. Is it somewhere documented what has to be done to switch the blueprint theia for another ide like the coffee-editor example? |
Replies: 2 comments 2 replies
|
Hi, thank you. The minikube docs use this values file as part of the helm install: valuesMinikube.yaml. You might also have to adjust the user id as well: https://github.com/eclipsesource/theia-cloud/blob/0f8d86487f84b0d7d54b9d9ab82fc3f600512d46/helm/theia.cloud/templates/theia-appdefinition-spec.yaml#L9 After installing Theia.cloud running |
|
Hi @jfaltermeier, Changing the image at
DetailsapiVersion: theia.cloud/v1beta
kind: AppDefinition
metadata:
annotations:
meta.helm.sh/release-name: theia-cloud
meta.helm.sh/release-namespace: theiacloud
creationTimestamp: "2022-08-22T19:23:12Z"
generation: 1
labels:
app.kubernetes.io/managed-by: Helm
name: theia-cloud-demo
namespace: theiacloud
resourceVersion: "5416"
uid: 968a38f3-a37e-4062-8c89-54bcf8305774
spec:
downlinkLimit: 30000
host: ws.192.168.49.2.nip.io
image: browork/ide:latest
ingressname: theia-cloud-demo-ws-ingress
limitsCpu: "2"
limitsMemory: 1200M
maxInstances: 10
minInstances: 0
name: theia-cloud-demo
port: 3000
requestsCpu: 100m
requestsMemory: 1000M
uid: 1000
uplinkLimit: 30000If I run my image locally the user has the uid of 1000, so I changed it also in If someone in the future comes across this post: With the changes above a new workspace starts almost immediately. Thank you very much! Maybe a bit off-topic: But when deploying via theia-cloud with the same code/image it works out of the box (Mostly, sometimes have to refresh multiple times to get everything working as expected. Do you have a clue why it works with theia-cloud out of the box? |
Hi,
thank you.
The minikube docs use this values file as part of the helm install: valuesMinikube.yaml.
So adjusting the image here should work: https://github.com/eclipsesource/theia-cloud/blob/0f8d86487f84b0d7d54b9d9ab82fc3f600512d46/helm/theia.cloud/valuesMinikube.yaml#L10
You might also have to adjust the user id as well: https://github.com/eclipsesource/theia-cloud/blob/0f8d86487f84b0d7d54b9d9ab82fc3f600512d46/helm/theia.cloud/templates/theia-appdefinition-spec.yaml#L9
Maybe there is no user with uid 101 in your custom image which might lead to errors, where files can't be read.
After installing Theia.cloud running
kubectl get appdefinition theia-cloud-demo -n theiacloud -o yamlshou…