diff --git a/core/ide/che-core-ide-stacks/src/main/resources/predefined-stacks.json b/core/ide/che-core-ide-stacks/src/main/resources/predefined-stacks.json index ce7f79f9cc..a7874c06bf 100644 --- a/core/ide/che-core-ide-stacks/src/main/resources/predefined-stacks.json +++ b/core/ide/che-core-ide-stacks/src/main/resources/predefined-stacks.json @@ -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": [ diff --git a/dashboard/src/app/projects/create-project/create-project.controller.js b/dashboard/src/app/projects/create-project/create-project.controller.js index e5ed3e65c5..c05186fd47 100755 --- a/dashboard/src/app/projects/create-project/create-project.controller.js +++ b/dashboard/src/app/projects/create-project/create-project.controller.js @@ -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'; }