-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdevfile.yaml
More file actions
91 lines (76 loc) · 2.09 KB
/
devfile.yaml
File metadata and controls
91 lines (76 loc) · 2.09 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: 1.0.0
metadata:
name: crwctl-dev
projects:
- name: crwctl
source:
type: git
location: 'https://github.com/redhat-developer/codeready-workspaces-chectl.git'
components:
- alias: dev
type: dockerimage
image: quay.io/crw/theia-dev-rhel8:latest
mountSources: true
memoryLimit: 3G
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: che-incubator/typescript/latest
type: chePlugin
memoryLimit: 1G
commands:
- name: Build
actions:
- type: exec
component: dev
command: >
yarn
workdir: /projects/crwctl
- name: Test
actions:
- type: exec
component: dev
command: >
yarn test
workdir: /projects/crwctl
- name: Run
actions:
- type: exec
component: dev
command: >
./run --help
workdir: /projects/crwctl/bin
- name: Generate Devfile
actions:
- type: exec
component: dev
command: >
./run devfile:generate \
--name=crwctl-test \
--language=typescript \
--dockerimage=quay.io/crw/theia-dev-rhel8:latest \
--git-repo=https://github.com/redhat-developer/codeready-workspaces-chectl.git \
--command="yarn" > /projects/sample.devfile;
cat /projects/sample.devfile
workdir: /projects/crwctl/bin
- name: Create Workspace
actions:
- type: exec
component: dev
command: >
cat /projects/sample.devfile | curl -F 'clbin=<-' https://clbin.com > /projects/clbin;
uri=$(cat /projects/clbin); ./run workspace:start -f=$uri
workdir: /projects/crwctl/bin
- name: Package Binaries
actions:
- type: exec
component: dev
command: >
yarn pack-binaries
workdir: /projects/crwctl
- name: Format Sources
actions:
- type: exec
component: dev
command: >
yarn format
workdir: /projects/crwctl