This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
devfile.yaml
101 lines (98 loc) · 3.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: 1.0.0
metadata:
name: che-plugin-broker
projects:
- name: che-plugin-broker
source:
location: 'https://github.com/eclipse/che-plugin-broker.git'
type: git
branch: master
clonePath: src/github.com/eclipse/che-plugin-broker
components:
- id: golang/go/latest
type: chePlugin
alias: ms-vscode.go
- type: dockerimage
image: 'eclipse/che-plugin-broker-dev:latest'
alias: dev
mountSources: true
memoryLimit: 1G
env:
- value: '/go:$(CHE_PROJECTS_ROOT)'
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
volumes:
- name: plugins
containerPath: /plugins
- type: dockerimage
image: 'quay.io/eclipse/che-plugin-registry:nightly'
alias: plugin-registry
endpoints:
- name: plugin-registry-local
attributes:
protocol: http
public: 'true'
discoverable: 'true'
type: plugin-registry
secure: 'false'
port: 8080
memoryLimit: 256M
commands:
- name: compile plugin metadata broker
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker/
type: exec
command: >-
printf 'Starting plugin metadata broker compilation...\n' &&
make build-metadata &&
printf '\033[32mDone.\033[0m'
component: dev
- name: compile "artifacts" plugin broker
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: >-
printf 'Starting plugin artifacts broker compilation...\n' &&
make build-artifacts &&
printf '\033[32mDone.\033[0m'
component: dev
- name: run tests
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: make test
component: dev
- name: format code
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: 'make fmt && printf "\033[32mDone.\033[0m"'
component: dev
- name: lint code
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: 'make lint'
component: dev
- name: update dependencies
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: >-
printf 'Update dependencies...\n' &&
go mod tidy && go mod vendor
printf "\033[32mDone.\033[0m"
component: dev
- name: start plugin artifacts broker
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: './plugin-artifacts-broker --disable-push=true --runtime-id=workspace:developer:eclipse-che --registry-address=http://plugin-registry-local:8080 --metas ./brokers/testdata/config-plugin-ids.json'
component: dev
- name: start plugin metadata broker
actions:
- workdir: /projects/src/github.com/eclipse/che-plugin-broker
type: exec
command: './plugin-metadata-broker --disable-push=true --runtime-id=workspace:developer:eclipse-che --registry-address=http://plugin-registry-local:8080 --metas ./brokers/testdata/config-plugin-ids.json'
component: dev