This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add devfile and doc for developing of Che Theia remote plugin mechani…
…sm (#413) * Add devfile and doc for developing of Che Theia remote plugin mechanism Signed-off-by: Mykola Morhun <[email protected]> * chore(CONTRIBUTING.md): improve toc and title
- Loading branch information
1 parent
843ac92
commit 3e39bf5
Showing
2 changed files
with
136 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
extensions/eclipse-che-theia-plugin-remote/devfile.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
apiVersion: 1.0.0 | ||
metadata: | ||
name: che-theia-remote-dev | ||
projects: | ||
- name: theia | ||
source: | ||
type: git | ||
location: 'https://github.com/theia-ide/theia.git' | ||
components: | ||
- type: cheEditor | ||
id: eclipse/che-theia/next | ||
alias: theia-editor | ||
- type: chePlugin | ||
id: eclipse/che-machine-exec-plugin/next | ||
- type: chePlugin | ||
id: che-incubator/typescript/latest | ||
memoryLimit: 2Gi | ||
- type: dockerimage | ||
image: eclipse/che-theia-dev:next | ||
alias: theia-dev | ||
mountSources: true | ||
env: | ||
- name: THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT | ||
value: '2504' | ||
memoryLimit: 3Gi | ||
- type: dockerimage | ||
image: eclipse/che-theia-dev:next | ||
alias: theia-remote-runtime-dev | ||
mountSources: true | ||
env: | ||
- name: THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT | ||
value: '2504' | ||
- name: THEIA_PLUGINS | ||
value: 'local-dir:///projects/remote-plugins/' | ||
memoryLimit: 1Gi | ||
commands: | ||
- name: Init Che Theia | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'che:theia init' | ||
workdir: /projects/theia | ||
- name: Clean Che Theia | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'che:theia clean' | ||
workdir: /projects/theia | ||
- name: Generate Hello World plugin package | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'yes | yo @theia/plugin && cp y/y.theia /projects/remote-plugins/hello-world-plugin.theia && rm -rf /tmp/y' | ||
workdir: /tmp | ||
- name: Build Che Theia | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'yarn' | ||
workdir: /projects/theia | ||
- name: Watch changes in Theia Remote Extension | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'npx run watch @eclipse-che/theia-remote' | ||
workdir: /projects/theia | ||
- name: Watch changes in Theia Plugin API Extension | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'npx run watch @theia/plugin-ext' | ||
workdir: /projects/theia | ||
- name: Watch changes in Theia assembly | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'yarn watch' | ||
workdir: /projects/theia/examples/assembly | ||
- name: Run Dev Theia | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'yarn theia start --hostname=0.0.0.0 --port=3130' | ||
workdir: /projects/theia/examples/assembly | ||
- name: Run Remote Theia Plugin Endpoint | ||
actions: | ||
- type: exec | ||
component: theia-remote-runtime-dev | ||
command: 'node plugin-remote.js' | ||
workdir: /projects/theia/che/che-theia/extensions/eclipse-che-theia-plugin-remote/lib/node | ||
- name: Terminate all in Dev Theia | ||
actions: | ||
- type: exec | ||
component: theia-dev | ||
command: 'killall node' | ||
- name: Terminate all in Remote Theia Plugin Endpoint | ||
actions: | ||
- type: exec | ||
component: theia-remote-runtime-dev | ||
command: 'killall node' |