Created
August 18, 2020 18:18
-
-
Save jcpowermac/897290ebc26a7b2bbfce03c5462b283f to your computer and use it in GitHub Desktop.
openshift installer devfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| metadata: | |
| name: installer | |
| projects: | |
| - name: openshift-installer | |
| source: | |
| location: 'https://github.com/openshift/installer.git' | |
| type: git | |
| branch: release-4.5 | |
| clonePath: src/github.com/openshift/installer | |
| components: | |
| - id: eclipse/che-theia/next | |
| memoryLimit: 1Gi | |
| type: cheEditor | |
| - id: golang/go/latest | |
| memoryLimit: 512Mi | |
| preferences: | |
| go.lintTool: golangci-lint | |
| go.useLanguageServer: true | |
| go.lintFlags: '--fast' | |
| type: chePlugin | |
| alias: go-plugin | |
| env: | |
| - value: 'off' | |
| name: GO111MODULE | |
| - mountSources: true | |
| endpoints: | |
| - name: 8080-tcp | |
| port: 8080 | |
| memoryLimit: 5Gi | |
| type: dockerimage | |
| image: >- | |
| quay.io/eclipse/che-golang-1.14@sha256:24ae5d537ea81d7343616c1dedd9874479e518e622fb223cced018a49a719b1b | |
| alias: go-cli | |
| env: | |
| - value: $(CHE_PROJECTS_ROOT) | |
| name: GOPATH | |
| - value: /tmp/.cache | |
| name: GOCACHE | |
| apiVersion: 1.0.0 | |
| commands: | |
| - name: 1.1 Run outyet | |
| actions: | |
| - workdir: '${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet' | |
| type: exec | |
| command: go get -d && go run main.go | |
| component: go-cli | |
| - name: 1.2 Stop outyet | |
| actions: | |
| - type: exec | |
| command: kill $(pidof go) | |
| component: go-cli | |
| - name: 1.3 Test outyet | |
| actions: | |
| - workdir: '${CHE_PROJECTS_ROOT}/src/github.com/golang/example/outyet' | |
| type: exec | |
| command: go test | |
| component: go-cli | |
| - name: '2.1 xenisa :: install dependencies' | |
| actions: | |
| - workdir: '${GOPATH}/src/github.com/xesina/golang-echo-realworld-example-app' | |
| type: exec | |
| command: go mod download | |
| component: go-cli | |
| - name: '2.2 xenisa :: run' | |
| actions: | |
| - workdir: '${GOPATH}/src/github.com/xesina/golang-echo-realworld-example-app' | |
| type: exec | |
| command: go run main.go | |
| component: go-cli | |
| - name: '2.3 xenisa :: build' | |
| actions: | |
| - workdir: '${GOPATH}/src/github.com/xesina/golang-echo-realworld-example-app' | |
| type: exec | |
| command: go build | |
| component: go-cli | |
| - name: '2.4 xenisa :: test' | |
| actions: | |
| - workdir: '${GOPATH}/src/github.com/xesina/golang-echo-realworld-example-app' | |
| type: exec | |
| command: go test ./... | |
| component: go-cli | |
| - name: Run current file | |
| actions: | |
| - workdir: '${fileDirname}' | |
| type: exec | |
| command: 'go get -d && go run ${file}' | |
| component: go-cli | |
| - 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment