From cc8b22e498c8de85ab4e21d88929dfb1eea706d4 Mon Sep 17 00:00:00 2001 From: Sergii Kabashniuk Date: Mon, 5 Feb 2018 13:55:11 +0200 Subject: [PATCH] Theia stacks from Florent's theia prototype (#8600) --- .../resources/stacks-images/type-theia.svg | 52 +++++++ .../src/main/resources/stacks.json | 134 ++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 ide/che-core-ide-stacks/src/main/resources/stacks-images/type-theia.svg diff --git a/ide/che-core-ide-stacks/src/main/resources/stacks-images/type-theia.svg b/ide/che-core-ide-stacks/src/main/resources/stacks-images/type-theia.svg new file mode 100644 index 00000000000..8efc6179756 --- /dev/null +++ b/ide/che-core-ide-stacks/src/main/resources/stacks-images/type-theia.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + diff --git a/ide/che-core-ide-stacks/src/main/resources/stacks.json b/ide/che-core-ide-stacks/src/main/resources/stacks.json index d78fcc2f5a3..c1a03c3ed3c 100644 --- a/ide/che-core-ide-stacks/src/main/resources/stacks.json +++ b/ide/che-core-ide-stacks/src/main/resources/stacks.json @@ -1,4 +1,138 @@ [ + { + "id": "java-theia-docker", + "creator": "ide", + "name": "Java Theia (docker)", + "description": "Che development + Theia in a sidecar container (docker)", + "scope": "general", + "tags": [ + "Java 1.8, Theia" + ], + "workspaceConfig": { + "environments": { + "default": { + "machines": { + "theia": { + "attributes": {}, + + "servers": { + "theia": { + "protocol": "http", + "port": "3000", + "attributes": { + "type": "ide" + } + } + }, + "volumes": { + "projects": { + "path": "/projects" + } + }, + "installers": [], + "env": {} + }, + "dev-machine": { + "attributes": {}, + "servers": { + "theia-dev": { + "protocol": "http", + "port": "3030" + } + }, + "volumes": { + "projects": { + "path": "/projects" + } + }, + "installers": [], + "env": {} + } + }, + "recipe": { + "type": "compose", + "content": "services:\n theia:\n image: theiaide/theia\n entrypoint:\n - yarn\n - theia\n - start\n - /projects\n - --hostname=0.0.0.0\n mem_limit: 1073741824\n dev-machine:\n image: eclipse/che-dev:nightly\n mem_limit: 2147483648\n depends_on:\n - theia", + "contentType": "application/x-yaml" + } + } + }, + "defaultEnv": "default", + "name": "theia", + "projects": [], + "commands": [] + }, + "stackIcon": { + "name": "type-theia.svg", + "mediaType": "image/svg+xml" + } + }, + { + "id": "java-theia-openshift", + "creator": "ide", + "name": "Java Theia (openshift)", + "description": "Che development + Theia in a sidecar container (openshift)", + "scope": "general", + "tags": [ + "Java 1.8, Theia" + ], + "workspaceConfig": { + "environments": { + "default": { + "machines": { + "ws/theia": { + "attributes": {}, + + "servers": { + "theia": { + "protocol": "http", + "port": "3000", + "attributes": { + "type": "ide" + } + } + }, + "volumes": { + "projects": { + "path": "/projects" + } + }, + "installers": [], + "env": {} + }, + "ws/dev": { + "attributes": {}, + "servers": { + "theia-dev": { + "protocol": "http", + "port": "3030" + } + }, + "volumes": { + "projects": { + "path": "/projects" + } + }, + "installers": [], + "env": {} + } + }, + "recipe": { + "type": "openshift", + "content": "---\nkind: List\nitems:\n-\n apiVersion: v1\n kind: Pod\n metadata:\n name: ws\n spec:\n containers:\n -\n image: theiaide/theia\n command:\n - yarn\n args:\n - theia\n - start\n - /projects\n - --hostname=0.0.0.0\n name: theia\n -\n image: eclipse/che-dev:nightly\n name: dev", + "contentType": "application/x-yaml" + } + } + }, + "defaultEnv": "default", + "name": "theia", + "projects": [], + "commands": [] + }, + "stackIcon": { + "name": "type-theia.svg", + "mediaType": "image/svg+xml" + } + }, { "id": "java-centos-mysql", "creator": "ide",