Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add devfile to develop Theia in Che #7658

Merged
merged 1 commit into from
Apr 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# A devfile to setup Theia project in Che.
# For developers who work on Theia core.

apiVersion: 1.0.0
metadata:
name: theia-dev
projects:
- name: theia
source:
type: git
location: "https://github.com/eclipse-theia/theia.git"
components:
- alias: che-dev
type: dockerimage
image: "quay.io/eclipse/che-theia-dev:next"
mountSources: true
endpoints:
- name: "theia-dev-flow"
port: 3000
attributes:
protocol: http
public: "true"
memoryLimit: "3Gi"
- id: che-incubator/typescript/latest
type: chePlugin
memoryLimit: 2048M
- type: cheEditor
alias: theia-editor
id: eclipse/che-theia/next
memoryLimit: "1Gi"
commands:
- name: >
theia: Build Sources
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn
workdir: ${workspaceRoot}/theia
- name: >
theia: Launch Browser Backend
actions:
- type: exec
component: che-dev
command: >
test -f /tmp/node_theiadev.pid && kill `cat /tmp/node_theiadev.pid`;
mkdir -p /tmp/theiadev_projects &&
export NODE_ENV=development &&
node src-gen/backend/main.js /tmp/theiadev_projects --hostname=0.0.0.0 --port=3000 --no-cluster --plugins=${workspaceRoot}/theia/plugins --hosted-plugin-inspect=9339 & echo $!> /tmp/node_theiadev.pid ; wait `cat /tmp/node_theiadev.pid`
workdir: ${workspaceRoot}/theia/examples/browser
- name: >
theia: Watch Core Packages
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn watch
workdir: ${workspaceRoot}/theia
- name: >
theia: Watch Browser Example
actions:
- type: exec
component: che-dev
command: >
killall node;
yarn watch
workdir: ${workspaceRoot}/theia/examples/browser