Skip to content

Instantly share code, notes, and snippets.

@kadel
Created May 14, 2020 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadel/d76d893fa9948f0807df9ba01297f86c to your computer and use it in GitHub Desktop.
Save kadel/d76d893fa9948f0807df9ba01297f86c to your computer and use it in GitHub Desktop.
odo devfile.yaml
apiVersion: 1.0.0
metadata:
name: odo
projects:
- name: odo
clonePath: src/github.com/openshift/odo
source:
location: 'https://github.com/kadel/odo.git'
type: git
components:
- id: ms-vscode/go/latest
memoryLimit: 512Mi
preferences:
go.lintFlags: '--fast'
go.useLanguageServer: true
go.lintTool: golangci-lint
type: chePlugin
alias: go-plugin
env:
- value: 'off'
name: GO111MODULE
- mountSources: true
memoryLimit: 512Mi
type: dockerimage
image: 'quay.io/eclipse/che-golang-1.12:7.12.2'
alias: go-cli
env:
- value: '/go:$(CHE_PROJECTS_ROOT)'
name: GOPATH
- value: /tmp/.cache
name: GOCACHE
commands:
- name: build odo
actions:
- workdir: '${CHE_PROJECTS_ROOT}/src/github.com/openshift/odo'
type: exec
command: make
component: go-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment