-
Notifications
You must be signed in to change notification settings - Fork 2
/
.devfile.yaml
41 lines (41 loc) · 1.37 KB
/
.devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
schemaVersion: 2.3.0
metadata:
name: devworkspace-generator
components:
- name: builder
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryRequest: 256Mi
memoryLimit: 3Gi
cpuRequest: 100m
cpuLimit: '1'
commands:
- id: build
exec:
label: "1. Build"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: |
nvm use v${NODEJS_20_VERSION}
yarn && yarn format:fix && yarn build
- id: test
exec:
label: "2. Run tests"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: |
nvm use v${NODEJS_20_VERSION}
yarn test
- id: generate-devworkspace
exec:
label: "3. Generate DevWorkspace with Template"
component: builder
workingDir: ${PROJECTS_ROOT}/devworkspace-generator
commandLine: |
nvm use v${NODEJS_20_VERSION}
node lib/entrypoint.js \
--devfile-url:https://github.com/che-samples/java-spring-petclinic/tree/main \
--editor-url:https://raw.githubusercontent.com/eclipse-che/che-operator/refs/heads/main/editors-definitions/che-code-insiders.yaml \
--output-file:/tmp/devworkspace-che-code-latest.yaml \
--injectDefaultComponent:true \
--defaultComponentImage:registry.access.redhat.com/ubi8/openjdk-11:latest