Skip to content

Commit 50c0cab

Browse files
committed
Update samples to be current
* Update samples to use eclipse-che.github.io for plugin samples Update samples to use eclipse-che.github.io/plugin-registry for Theia instead of https://che-plugin-registry-main.surge.sh * Update all samples to use contributions instead of plugin components * Use che-code for all samples instead of Theia (Keep old Theia sample though) * Fix samples to use $PROJECT_SOURCE instead of $PROJECT_ROOT $PROJECTS_ROOT is not normally used anymore, since $PROJECTS_SOURCE points to the full path of the repository on disk inside the workspace (when there is only one project). Also fixes an issue where the previous path used for commands was invalid. Signed-off-by: Angel Misevski <amisevsk@redhat.com>
1 parent a3a3429 commit 50c0cab

7 files changed

Lines changed: 64 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: DevWorkspace
22
apiVersion: workspace.devfile.io/v1alpha2
33
metadata:
4-
name: theia-latest-contributions
4+
name: code-latest
55
spec:
66
started: true
77
template:
@@ -13,16 +13,15 @@ spec:
1313
commands:
1414
- id: say-hello
1515
exec:
16-
component: theia-ide
16+
component: che-code-runtime-description
1717
commandLine: echo "Hello from $(pwd)"
18-
workingDir: ${PROJECTS_ROOT}/project/app
19-
18+
workingDir: ${PROJECT_SOURCE}/app
2019
contributions:
21-
- name: theia
22-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
20+
- name: che-code
21+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
2322
components:
24-
- name: theia-ide
23+
- name: che-code-runtime-description
2524
container:
2625
env:
27-
- name: THEIA_HOST
26+
- name: CODE_HOST
2827
value: 0.0.0.0

samples/container-overrides.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ metadata:
44
name: web-terminal-container-overrides
55
spec:
66
started: true
7-
87
template:
98
attributes:
109
controller.devfile.io/storage-type: ephemeral

samples/ephemeral-storage.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: DevWorkspace
22
apiVersion: workspace.devfile.io/v1alpha2
33
metadata:
4-
name: theia-latest-ephemeral
4+
name: code-latest-ephemeral
55
spec:
66
started: true
77
template:
@@ -12,19 +12,18 @@ spec:
1212
git:
1313
remotes:
1414
origin: "https://github.com/che-samples/web-nodejs-sample.git"
15-
components:
16-
- name: theia
17-
plugin:
18-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
19-
components:
20-
- name: theia-ide
21-
container:
22-
env:
23-
- name: THEIA_HOST
24-
value: 0.0.0.0
2515
commands:
2616
- id: say-hello
2717
exec:
28-
component: theia-ide
18+
component: che-code-runtime-description
2919
commandLine: echo "Hello from $(pwd)"
30-
workingDir: ${PROJECTS_ROOT}/project/app
20+
workingDir: ${PROJECT_SOURCE}/app
21+
contributions:
22+
- name: che-code
23+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
24+
components:
25+
- name: che-code-runtime-description
26+
container:
27+
env:
28+
- name: CODE_HOST
29+
value: 0.0.0.0

samples/git-clone-sample.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ spec:
1818
remotes:
1919
origin: "https://github.com/devfile/devworkspace-operator.git"
2020
amisevsk: "https://github.com/amisevsk/devworkspace-operator.git"
21-
components:
22-
- name: theia
23-
plugin:
24-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
25-
components:
26-
- name: theia-ide
27-
container:
28-
env:
29-
- name: THEIA_HOST
30-
value: 0.0.0.0
3121
commands:
3222
- id: say-hello
3323
exec:
34-
component: theia-ide
24+
component: che-code-runtime-description
3525
commandLine: echo "Hello from $(pwd)"
36-
workingDir: ${PROJECTS_ROOT}/project/app
26+
workingDir: ${PROJECT_SOURCE}/app
27+
contributions:
28+
- name: che-code
29+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
30+
components:
31+
- name: che-code-runtime-description
32+
container:
33+
env:
34+
- name: CODE_HOST
35+
value: 0.0.0.0

samples/per-workspace-storage.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: DevWorkspace
22
apiVersion: workspace.devfile.io/v1alpha2
33
metadata:
4-
name: theia-latest-per-workspace
4+
name: code-latest-per-workspace
55
spec:
66
started: true
77
template:
@@ -12,19 +12,18 @@ spec:
1212
git:
1313
remotes:
1414
origin: "https://github.com/che-samples/web-nodejs-sample.git"
15-
components:
16-
- name: theia
17-
plugin:
18-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
19-
components:
20-
- name: theia-ide
21-
container:
22-
env:
23-
- name: THEIA_HOST
24-
value: 0.0.0.0
2515
commands:
2616
- id: say-hello
2717
exec:
28-
component: theia-ide
18+
component: che-code-runtime-description
2919
commandLine: echo "Hello from $(pwd)"
30-
workingDir: ${PROJECTS_ROOT}/project/app
20+
workingDir: ${PROJECT_SOURCE}/app
21+
contributions:
22+
- name: che-code
23+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
24+
components:
25+
- name: che-code-runtime-description
26+
container:
27+
env:
28+
- name: CODE_HOST
29+
value: 0.0.0.0

samples/pod-overrides.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: DevWorkspace
22
apiVersion: workspace.devfile.io/v1alpha2
33
metadata:
4-
name: theia-latest-pod-overrides
4+
name: code-latest-pod-overrides
55
spec:
66
started: true
77
template:
@@ -20,19 +20,18 @@ spec:
2020
git:
2121
remotes:
2222
origin: "https://github.com/che-samples/web-nodejs-sample.git"
23-
components:
24-
- name: theia
25-
plugin:
26-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
27-
components:
28-
- name: theia-ide
29-
container:
30-
env:
31-
- name: THEIA_HOST
32-
value: 0.0.0.0
3323
commands:
3424
- id: say-hello
3525
exec:
36-
component: theia-ide
26+
component: che-code-runtime-description
3727
commandLine: echo "Hello from $(pwd)"
38-
workingDir: ${PROJECTS_ROOT}/project/app
28+
workingDir: ${PROJECT_SOURCE}/app
29+
contributions:
30+
- name: che-code
31+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
32+
components:
33+
- name: che-code-runtime-description
34+
container:
35+
env:
36+
- name: CODE_HOST
37+
value: 0.0.0.0

samples/theia-latest.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@ spec:
1010
git:
1111
remotes:
1212
origin: "https://github.com/che-samples/web-nodejs-sample.git"
13-
components:
14-
- name: theia
15-
plugin:
16-
uri: https://che-plugin-registry-main.surge.sh/v3/plugins/eclipse/che-theia/latest/devfile.yaml
17-
components:
18-
- name: theia-ide
19-
container:
20-
env:
21-
- name: THEIA_HOST
22-
value: 0.0.0.0
2313
commands:
2414
- id: say-hello
2515
exec:
2616
component: theia-ide
2717
commandLine: echo "Hello from $(pwd)"
28-
workingDir: ${PROJECTS_ROOT}/project/app
18+
workingDir: ${PROJECT_SOURCE}/app
19+
contributions:
20+
- name: theia
21+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/eclipse/che-theia/latest/devfile.yaml
22+
components:
23+
- name: theia-ide
24+
container:
25+
env:
26+
- name: THEIA_HOST
27+
value: 0.0.0.0

0 commit comments

Comments
 (0)