Created
December 17, 2018 14:58
-
-
Save slemeur/f7be22dfb763083fab2e5d6da9f878ab to your computer and use it in GitHub Desktop.
Che7-workspace-config
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
| { | |
| "defaultEnv": "default", | |
| "environments": { | |
| "default": { | |
| "machines": { | |
| "ws/dev": { | |
| "attributes": { | |
| "memoryLimitBytes": "536870912" | |
| }, | |
| "servers": { | |
| "nodejs": { | |
| "attributes": {}, | |
| "port": "3001", | |
| "protocol": "http" | |
| } | |
| }, | |
| "volumes": { | |
| "projects": { | |
| "path": "/projects" | |
| } | |
| }, | |
| "installers": [], | |
| "env": {} | |
| } | |
| }, | |
| "recipe": { | |
| "type": "openshift", | |
| "content": "kind: List\nitems:\n - \n apiVersion: v1\n kind: Pod\n metadata:\n name: ws\n spec:\n containers:\n - \n image: wsskeleton/che-plugin-dev-tooling\n name: dev\n resources:\n limits:\n memory: 512Mi\n", | |
| "contentType": "application/x-yaml" | |
| } | |
| } | |
| }, | |
| "projects": [ | |
| { | |
| "links": [], | |
| "name": "simple-nodejs-weather-app", | |
| "attributes": {}, | |
| "source": { | |
| "location": "https://github.com/bmorelli25/simple-nodejs-weather-app", | |
| "type": "git", | |
| "parameters": {} | |
| }, | |
| "path": "/simple-nodejs-weather-app", | |
| "description": "", | |
| "problems": [], | |
| "mixins": [], | |
| "type": "" | |
| } | |
| ], | |
| "name": "wksp-demo-node", | |
| "attributes": { | |
| "editor": "https://che-plugin-registry-mloriedo.8a09.starter-us-east-2.openshiftapps.com/plugins/org.eclipse.che.editor.theia:1.0.0", | |
| "che.server.secure_exposer": "jwtproxy", | |
| "plugins": "che-machine-exec-plugin:0.0.1" | |
| }, | |
| "commands": [ | |
| { | |
| "commandLine": "kill $(pgrep node | head -n 1)", | |
| "name": "Stop", | |
| "attributes": {}, | |
| "type": "che" | |
| }, | |
| { | |
| "commandLine": "cd ${current.project.path} && node --inspect server.js", | |
| "name": "Run (Debug Mode)", | |
| "attributes": { | |
| "goal": "Run", | |
| "previewUrl": "${server.nodejs}" | |
| }, | |
| "type": "che" | |
| }, | |
| { | |
| "commandLine": "cd ${current.project.path} && yarn", | |
| "name": "Build", | |
| "attributes": {}, | |
| "type": "che" | |
| }, | |
| { | |
| "commandLine": "cd ${current.project.path} && PORT=3001 yarn run start", | |
| "name": "Run", | |
| "attributes": { | |
| "goal": "Run", | |
| "previewUrl": "${server.nodejs}" | |
| }, | |
| "type": "che" | |
| }, | |
| { | |
| "commandLine": "echo ${CHE_OSO_CLUSTER//api/console}", | |
| "name": "Get OpenShift Console URL", | |
| "attributes": {}, | |
| "type": "" | |
| } | |
| ], | |
| "links": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment