Skip to content

Instantly share code, notes, and snippets.

@sunix
Created November 30, 2020 12:44
Show Gist options
  • Save sunix/a1295a1150f129ad40d2a11c59a3c063 to your computer and use it in GitHub Desktop.
Save sunix/a1295a1150f129ad40d2a11c59a3c063 to your computer and use it in GitHub Desktop.
custom editor that use che-theia + rust to test remote task not working
apiVersion: v2
publisher: eclipse
name: che-theia
version: next
type: Che Editor
displayName: theia-ide
title: Eclipse Theia development version + rust.
description: Eclipse Theia, get the latest release each day. + rust
icon: https://raw.githubusercontent.com/theia-ide/theia/master/logo/theia-logo-no-text-black.svg?sanitize=true
category: Editor
repository: https://github.com/eclipse/che-theia
firstPublicationDate: "2019-03-07"
spec:
endpoints:
- name: "theia"
public: true
targetPort: 3100
attributes:
protocol: http
type: ide
secure: true
cookiesAuthEnabled: true
discoverable: false
- name: "webviews"
public: true
targetPort: 3100
attributes:
protocol: http
type: webview
secure: true
cookiesAuthEnabled: true
discoverable: false
unique: true
- name: "mini-browser"
public: true
targetPort: 3100
attributes:
protocol: http
type: mini-browser
secure: true
cookiesAuthEnabled: true
discoverable: false
unique: true
- name: "theia-dev"
public: true
targetPort: 3130
attributes:
protocol: http
type: ide-dev
discoverable: false
- name: "theia-redirect-1"
public: true
targetPort: 13131
attributes:
protocol: http
discoverable: false
- name: "theia-redirect-2"
public: true
targetPort: 13132
attributes:
protocol: http
discoverable: false
- name: "theia-redirect-3"
public: true
targetPort: 13133
attributes:
protocol: http
discoverable: false
containers:
- name: theia-ide
image: "quay.io/sunix/che-theia-rust:latest"
env:
- name: THEIA_PLUGINS
value: local-dir:///plugins
- name: HOSTED_PLUGIN_HOSTNAME
value: 0.0.0.0
- name: HOSTED_PLUGIN_PORT
value: "3130"
- name: THEIA_HOST
value: 127.0.0.1
volumes:
- mountPath: "/plugins"
name: plugins
mountSources: true
ports:
- exposedPort: 3100
- exposedPort: 3130
- exposedPort: 13131
- exposedPort: 13132
- exposedPort: 13133
memoryLimit: "512M"
initContainers:
- name: remote-runtime-injector
image: "quay.io/eclipse/che-theia-endpoint-runtime-binary:next"
volumes:
- mountPath: "/remote-endpoint"
name: remote-endpoint
ephemeral: true
env:
- name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
value: /remote-endpoint/plugin-remote-endpoint
- name: REMOTE_ENDPOINT_VOLUME_NAME
value: remote-endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment