forked from che-incubator/kubernetes-image-puller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
40 lines (39 loc) · 1 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
metadata:
generateName: kubernetes-image-puller-
projects:
- name: kubernetes-image-puller
source:
location: 'https://github.com/che-incubator/kubernetes-image-puller.git'
type: git
branch: master
attributes:
persistVolumes: 'false'
components:
- id: ms-vscode/go/latest
memoryLimit: 512Mi
preferences:
go.lintTool: golangci-lint
go.lintFlags: '--fast'
type: chePlugin
alias: go-plugin
- mountSources: true
endpoints:
- name: 8080/tcp
port: 8080
memoryLimit: 2Gi
type: dockerimage
image: 'quay.io/eclipse/che-golang-1.12:nightly'
alias: go-cli
env:
- value: '/go:$(CHE_PROJECTS_ROOT)'
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
apiVersion: 1.0.0
commands:
- name: build kubernetes-image-puller
actions:
- workdir: '${CHE_PROJECTS_ROOT}/kubernetes-image-puller'
type: exec
command: go build -v -o ./bin/kubernetes-image-puller ./cmd/main.go
component: go-cli