forked from golang/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
54 lines (50 loc) · 1.17 KB
/
devfile.yaml
File metadata and controls
54 lines (50 loc) · 1.17 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
schemaVersion: 2.2.2
metadata:
name: golang-example
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
env:
- name: GOPATH
value: /projects:/home/user/go
- name: GOCACHE
value: /tmp/.cache
endpoints:
- name: 8080-https
targetPort: 8080
protocol: https
memoryLimit: 2Gi
mountSources: true
commands:
- id: run-outyet
exec:
label: "1.1 Run outyet"
component: tools
workingDir: ${PROJECT_SOURCE}/outyet
commandLine: "go get -d && go run main.go"
group:
kind: run
- id: stop-outyet
exec:
label: "1.2 Stop outyet"
component: tools
commandLine: "kill $(pidof go)"
group:
kind: run
- id: test-outyet
exec:
label: "1.3 Test outyet"
component: tools
workingDir: ${PROJECT_SOURCE}/outyet
commandLine: "go test"
group:
kind: test
- id: run-current-file
exec:
label: "Run current file"
component: tools
workingDir: ${fileDirname}
commandLine: "go get -d && go run ${file}"
group:
kind: run