Skip to content

Commit

Permalink
Create devfilev2 (#116)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kwon <[email protected]>
Co-authored-by: Ilya Buziuk <[email protected]>
  • Loading branch information
dkwon17 and ibuziuk authored Dec 8, 2023
1 parent eda6cc3 commit a325db7
Showing 1 changed file with 7 additions and 41 deletions.
48 changes: 7 additions & 41 deletions devfile.yaml
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
apiVersion: 1.0.0
schemaVersion: 2.2.2
metadata:
generateName: kubernetes-image-puller-operator-

attributes:
persistVolumes: 'true'
generateName: kubernetes-image-puller-operator
components:
- id: golang/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
alias: go-cli
image: 'quay.io/eclipse/che-golang-1.12:next'
env:
- value: '/go:$(CHE_PROJECTS_ROOT)'
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
commands:
- name: build kubernetes-image-puller-operator
actions:
- workdir: >-
${CHE_PROJECTS_ROOT}/kubernetes-image-puller-operator
type: exec
command: go build -v -o ./bin/kubernetes-image-puller ./cmd/manager/main.go
component: go-cli
- name: test kubernetes-image-puller-operator
actions:
- workdir: >-
${CHE_PROJECTS_ROOT}/kubernetes-image-puller-operator
type: exec
command: go test -v ./pkg...
component: go-cli
- name: universal-developer-image
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryLimit: 12Gi
mountSources: true

0 comments on commit a325db7

Please sign in to comment.