Skip to content

Instantly share code, notes, and snippets.

@amisevsk
Created February 16, 2023 22:44
Show Gist options
  • Save amisevsk/986b628d26a61427fd2f679ddd414ee1 to your computer and use it in GitHub Desktop.
Save amisevsk/986b628d26a61427fd2f679ddd414ee1 to your computer and use it in GitHub Desktop.
kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
name: code-latest
spec:
started: true
routingClass: che
template:
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: web-nodejs-sample
git:
remotes:
origin: "https://github.com/che-samples/web-nodejs-sample.git"
components:
- name: dev
container:
image: quay.io/amisevsk/web-terminal-tooling:zsh
env:
# Change value of SHELL below to use a different shell (available: /bin/bash, /bin/sh, /bin/zsh)
- name: SHELL
value: /bin/zsh
commands:
- id: say-hello
exec:
component: dev
commandLine: echo "Hello from $(pwd)"
workingDir: ${PROJECT_SOURCE}/app
contributions:
- name: che-code
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
## Uncomment lines below to use alternate che-code image that does not add entry to /etc/passwd
# components:
# - name: che-code-injector
# container:
# image: quay.io/amisevsk/che-code:test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment