|
| 1 | +apiVersion: 1.0.0 |
| 2 | +metadata: |
| 3 | + name: che-theia-remote-dev |
| 4 | +projects: |
| 5 | + - name: theia |
| 6 | + source: |
| 7 | + type: git |
| 8 | + location: 'https://github.com/theia-ide/theia.git' |
| 9 | +components: |
| 10 | + - type: cheEditor |
| 11 | + id: eclipse/che-theia/next |
| 12 | + alias: theia-editor |
| 13 | + - type: chePlugin |
| 14 | + id: eclipse/che-machine-exec-plugin/next |
| 15 | + - type: chePlugin |
| 16 | + id: che-incubator/typescript/latest |
| 17 | + - type: dockerimage |
| 18 | + image: eclipse/che-theia-dev:next |
| 19 | + alias: theia-dev |
| 20 | + mountSources: true |
| 21 | + env: |
| 22 | + - name: THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT |
| 23 | + value: '2504' |
| 24 | + memoryLimit: 3Gi |
| 25 | + - type: dockerimage |
| 26 | + image: eclipse/che-theia-dev:next |
| 27 | + alias: theia-remote-runtime-dev |
| 28 | + mountSources: true |
| 29 | + env: |
| 30 | + - name: THEIA_PLUGIN_ENDPOINT_DISCOVERY_PORT |
| 31 | + value: '2504' |
| 32 | + - name: THEIA_PLUGINS |
| 33 | + value: 'local-dir:///projects/remote-plugins/' |
| 34 | + memoryLimit: 1Gi |
| 35 | +commands: |
| 36 | + - name: Init Che Theia |
| 37 | + actions: |
| 38 | + - type: exec |
| 39 | + component: theia-dev |
| 40 | + command: che:theia init |
| 41 | + workdir: /projects/theia |
| 42 | + - name: Clean Che Theia |
| 43 | + actions: |
| 44 | + - type: exec |
| 45 | + component: theia-dev |
| 46 | + command: che:theia clean |
| 47 | + workdir: /projects/theia |
| 48 | + - name: Build Che Theia |
| 49 | + actions: |
| 50 | + - type: exec |
| 51 | + component: theia-dev |
| 52 | + command: yarn |
| 53 | + workdir: /projects/theia |
| 54 | + - name: Watch changes in Theia Remote Extension |
| 55 | + actions: |
| 56 | + - type: exec |
| 57 | + component: theia-dev |
| 58 | + command: 'cd /projects/theia && npx run watch @eclipse-che/theia-remote & cd /projects/theia/examples/assembly && yarn watch' |
| 59 | + - name: Run Dev Theia |
| 60 | + actions: |
| 61 | + - type: exec |
| 62 | + component: theia-dev |
| 63 | + command: 'yarn theia start --hostname=0.0.0.0 --port=3130' |
| 64 | + workdir: /projects/theia/examples/assembly |
| 65 | + - name: Run Remote Theia Plugin Endpoint |
| 66 | + actions: |
| 67 | + - type: exec |
| 68 | + component: theia-remote-runtime-dev |
| 69 | + command: 'node plugin-remote.js' |
| 70 | + workdir: /projects/theia/che/che-theia/extensions/eclipse-che-theia-plugin-remote/lib/node |
| 71 | + - name: Terminate all in Dev Theia |
| 72 | + actions: |
| 73 | + - type: exec |
| 74 | + component: theia-dev |
| 75 | + command: 'killall node' |
| 76 | + - name: Terminate all in Remote Theia Plugin Endpoint |
| 77 | + actions: |
| 78 | + - type: exec |
| 79 | + component: theia-remote-runtime-dev |
| 80 | + command: 'killall node' |
0 commit comments