Skip to content

Instantly share code, notes, and snippets.

@JPinkney
Last active December 23, 2021 17:26
Show Gist options
  • Save JPinkney/d4f6e665d1239a5fc4caefbe20bf4f56 to your computer and use it in GitHub Desktop.
Save JPinkney/d4f6e665d1239a5fc4caefbe20bf4f56 to your computer and use it in GitHub Desktop.
schemaVersion: 2.1.0
metadata:
name: golang-echo-example
namespace: che-che
projects:
- git:
checkoutFrom:
revision: devfile2
remotes:
origin: 'https://github.com/che-samples/golang-echo-example.git'
name: golang-echo-example
components:
- attributes:
app.kubernetes.io/name: go-cli
che-theia.eclipse.org/vscode-extensions:
- 'https://github.com/golang/vscode-go/releases/download/v0.23.0/go-0.23.0.vsix'
- 'https://github.com/Azure/vscode-kubernetes-tools/releases/download/1.3.4/vscode-kubernetes-tools-1.3.4.vsix'
- 'https://github.com/redhat-developer/vscode-yaml/releases/download/1.2.2/yaml-1.2.2-19470.vsix'
container:
args:
- sh
- '-c'
- '${PLUGIN_REMOTE_ENDPOINT_EXECUTABLE}'
endpoints:
- exposure: public
name: 8080-tcp
protocol: http
targetPort: 8585
env:
- name: GOPATH
value: '/projects:/home/user/go'
- name: GOCACHE
value: /tmp/.cache
- name: PLUGIN_REMOTE_ENDPOINT_EXECUTABLE
value: /remote-endpoint/plugin-remote-endpoint
- name: THEIA_PLUGINS
value: 'local-dir:///plugins/sidecars/go-cli'
image: 'quay.io/devfile/universal-developer-image:ubi8-112f94a'
memoryLimit: 2Gi
mountSources: true
sourceMapping: /projects
volumeMounts:
- name: remote-endpoint
path: /remote-endpoint
- name: plugins
path: /plugins
name: go-cli
commands: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment