-
Notifications
You must be signed in to change notification settings - Fork 1
/
devfile.yaml
61 lines (61 loc) · 1.35 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
apiVersion: 1.0.0
metadata:
generateName: onyxiactl-
attributes:
persistVolumes: 'false'
projects:
- name: onyxia-cli
source:
location: 'https://github.com/InseeFrLab/onyxia-cli.git'
type: git
branch: main
components:
- id: golang/go/latest
preferences:
go.lintFlags: '--fast'
go.useLanguageServer: true
go.lintTool: golangci-lint
type: chePlugin
alias: go-plugin
env:
- value: 'off'
name: GO111MODULE
- mountSources: true
endpoints:
- name: 8080-tcp
port: 8080
command:
- sleep
- infinity
memoryLimit: 2Gi
type: dockerimage
image: golang
alias: go
env:
- value: $(CHE_PROJECTS_ROOT)
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
commands:
- name: 'Run :)'
actions:
- workdir: '${CHE_PROJECTS_ROOT}/onyxia-onboarding'
type: exec
command: go run .
component: go
- name: Debug current file
actions:
- referenceContent: |-
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug current file",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}"
}
]
}
type: vscode-launch