Last active
December 1, 2022 12:55
-
-
Save svor/d87dc2532a0e5ff8305f9c69af6b6df0 to your computer and use it in GitHub Desktop.
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
kind: DevWorkspace | |
apiVersion: workspace.devfile.io/v1alpha2 | |
metadata: | |
name: test-contrib-code | |
spec: | |
started: true | |
template: | |
attributes: | |
controller.devfile.io/storage-type: ephemeral | |
projects: | |
- name: golang-sample | |
git: | |
remotes: | |
origin: "https://github.com/che-samples/golang-example.git" | |
components: | |
- name: tools | |
attributes: | |
controller.devfile.io/merge-contribution: true | |
che-theia.eclipse.org/vscode-extensions: | |
- https://github.com/golang/vscode-go/releases/download/v0.23.0/go-0.23.0.vsix | |
container: | |
image: quay.io/devfile/universal-developer-image:ubi8-0e189d9 | |
env: | |
- name: GOPATH | |
value: /projects:/home/user/go | |
- name: GOCACHE | |
value: /tmp/.cache | |
endpoints: | |
- name: 8080-tcp | |
targetPort: 8080 | |
memoryLimit: 2Gi | |
mountSources: true | |
- name: che-code | |
plugin: | |
uri: https://gist.githubusercontent.com/svor/17e49313a8d9d558f61ef38563728a77/raw/af3cdda355b717d4038520ce92dec24528158e58/che-code-devfile.yaml | |
# Workaround to make Code listen on localhost instead of loopback. Can be removed | |
# if routingClass is Che | |
components: | |
- name: che-code-runtime-description | |
container: | |
env: | |
- name: CODE_HOST | |
value: 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment