CHE-209: fix recipes

Signed-off-by: Oleksii Kurinnyi <okurinnyi@codenvy.com>
6.19.x
Oleksii Kurinnyi 2016-03-02 15:58:13 +02:00
parent f384efdc27
commit b5a6772f75
2 changed files with 7 additions and 4 deletions

View File

@ -573,8 +573,8 @@
}
],
"source": {
"type": "image",
"origin": "codenvy/debian_jre"
"type": "recipe",
"origin": "FROM codenvy/debian_jre\nCMD tail -f /dev/null"
},
"workspaceConfig": {
"environments": [
@ -655,8 +655,8 @@
"description": null
},
"source": {
"type": "image",
"origin": "codenvy/ubuntu_jre"
"type": "recipe",
"origin": "FROM codenvy/ubuntu_jre\nCMD tail -f /dev/null"
},
"permissions": {
"groups": [

View File

@ -689,6 +689,9 @@ export class CreateProjectCtrl {
if ('image' === recipeSource.type) {
// needs to add recipe for that script
promise = this.submitRecipe('generated-' + stack.name, 'FROM ' + recipeSource.origin);
} else if ('recipe' === recipeSource.type) {
promise = this.submitRecipe('generated-' + stack.name, recipeSource.origin);
} else {
throw 'Not implemented';
}