Skip to content

Commit 93627ae

Browse files
committed
Add dev container component to basic samples
This represents a more "normal" DevWorkspace sample, as it contains a 'dev' component, using UDI latest, that we expect DWO to merge contributions into automatically. Signed-off-by: Angel Misevski <amisevsk@redhat.com>
1 parent 50c0cab commit 93627ae

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

samples/code-latest.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ spec:
1010
git:
1111
remotes:
1212
origin: "https://github.com/che-samples/web-nodejs-sample.git"
13+
components:
14+
- name: dev
15+
container:
16+
image: quay.io/devfile/universal-developer-image:latest
1317
commands:
1418
- id: say-hello
1519
exec:
16-
component: che-code-runtime-description
20+
component: dev
1721
commandLine: echo "Hello from $(pwd)"
1822
workingDir: ${PROJECT_SOURCE}/app
1923
contributions:

samples/theia-latest.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ spec:
1010
git:
1111
remotes:
1212
origin: "https://github.com/che-samples/web-nodejs-sample.git"
13+
components:
14+
- name: dev
15+
container:
16+
image: quay.io/devfile/universal-developer-image:latest
1317
commands:
1418
- id: say-hello
1519
exec:
16-
component: theia-ide
20+
component: dev
1721
commandLine: echo "Hello from $(pwd)"
1822
workingDir: ${PROJECT_SOURCE}/app
1923
contributions:

0 commit comments

Comments
 (0)