Created
January 25, 2019 09:17
-
-
Save jarifibrahim/6a3f4bfb0efb863b9f73d40b9bdad420 to your computer and use it in GitHub Desktop.
Create Che workspace from devfile
This file contains 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
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