-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdevfile.yaml
87 lines (71 loc) · 2.22 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
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
# A devfile to setup sunix-devfiles repo
#
apiVersion: 1.0.0
metadata:
generateName: sunix-devfile-registry-
projects:
- name: sunix-devfiles
source:
type: git
location: 'https://github.com/sunix/devfiles.git'
- name: che-devfile-registry
source:
type: git
location: 'https://github.com/eclipse/che-devfile-registry'
components:
- alias: che-devfile-registry-prod
image: 'quay.io/eclipse/che-devfile-registry:nightly'
mountSources: true
endpoints:
- name: http
port: 8080
command:
- sleep
- infinity
memoryLimit: 512Mi
type: dockerimage
volumes:
- name: images
containerPath: /usr/local/apache2/htdocs/images
- alias: dev
image: 'quay.io/eclipse/che-plugin-registry-dev:latest'
mountSources: true
memoryLimit: 1G
type: dockerimage
- id: redhat/vscode-xml/latest
type: chePlugin
- id: redhat/vscode-yaml/latest
type: chePlugin
- id: eamodio/gitlens/latest
type: chePlugin
registryUrl: 'https://che-plugin-registry-main.surge.sh/v3'
- id: donjayamanne/githistory/latest
type: chePlugin
registryUrl: 'https://che-plugin-registry-main.surge.sh/v3'
- id: timonwong/shellcheck/latest
type: chePlugin
registryUrl: 'https://che-plugin-registry-main.surge.sh/v3'
- id: ms-vscode/vscode-github-pullrequest/latest
type: chePlugin
commands:
- name: 1. build sunix devfile-registry
actions:
- workdir: '${CHE_PROJECTS_ROOT}/che-devfile-registry'
type: exec
command: DEVFILES_SRC=/projects/sunix-devfiles/devfiles ./build/dev/build-devfile-registry.sh
component: dev
- name: 2. start sunix devfile-registry
previewUrl:
port: 8080
path: /devfiles/
actions:
- workdir: '${CHE_PROJECTS_ROOT}/che-devfile-registry'
type: exec
command: IMAGES_SRC=/projects/sunix-devfiles/images ./build/dev/start-devfile-registry.sh
component: che-devfile-registry-prod
- name: 3. publish sunix to surge.sh
actions:
- workdir: '${CHE_PROJECTS_ROOT}/che-devfile-registry/'
type: exec
command: IMAGES_SRC=/projects/sunix-devfiles/images ./build/dev/publish-devfile-registry-to-surge.sh
component: dev