Skip to content

Instantly share code, notes, and snippets.

@jarifibrahim
Created January 25, 2019 09:17
Show Gist options
  • Save jarifibrahim/6a3f4bfb0efb863b9f73d40b9bdad420 to your computer and use it in GitHub Desktop.
Save jarifibrahim/6a3f4bfb0efb863b9f73d40b9bdad420 to your computer and use it in GitHub Desktop.
Create Che workspace from devfile
curl -X POST \
--header 'Content-Type: application/yaml' \
--header "Authorization: Bearer $tkn" \
--data '---
specVersion: 0.0.1
name: petclinic-dev-environment
projects:
- name: petclinic
source:
type: git
location: "https://github.com/nodeshift-starters/nodejs-health-check"
tools:
- name: theia-ide
type: cheEditor
id: org.eclipse.che.editor.theia:1.0.0
- name: terminal
type: chePlugin
id: che-machine-exec-plugin:0.0.1
commands:
- name: hello
actions:
- type: exec
tool: theia-ide
command: echo Hello
workdir: /projects/spring-petclinic' \
'https://che.prod-preview.openshift.io/api/devfile?verbose=true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment