Skip to content

Commit

Permalink
Merge pull request #1086 from eclipse/add-new-stacks
Browse files Browse the repository at this point in the history
Add new stacks and samples
  • Loading branch information
Eugene Ivantsov committed Apr 21, 2016
2 parents 4a92966 + 69191cc commit 17a5b55
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 15 deletions.
168 changes: 155 additions & 13 deletions core/ide/che-core-ide-stacks/src/main/resources/predefined-stacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,80 @@
"mediaType": "image/svg+xml"
}
},
{
"id": "android-default",
"creator": "ide",
"name": "Android",
"description": "Default Android Stack with Java 1.8, Maven 3.2.3, Android (21 api level).",
"scope": "general",
"tags": [
"Android",
"Ubuntu",
"Git"
],
"components": [
{
"name": "Android",
"version": "21"
},
{
"name": "Java",
"version": "1.8"
},
{
"name": "Maven",
"version": "3.2.3"
}
],
"source": {
"type": "image",
"origin": "codenvy/ubuntu_android"
},
"workspaceConfig": {
"environments": [
{
"name": "default",
"recipe": null,
"machineConfigs": [
{
"name": "default",
"limits": {
"ram": 1000
},
"source": {
"location": "stub",
"type": "dockerfile"
},
"type": "docker",
"dev": true
}
]
}
],
"name": "default",
"defaultEnv": "default",
"description": null},
"permissions": {
"groups": [
{
"acl": [
"read",
"search"
],
"name": "public"
}
],
"users": {}
},
"stackIcon": {
"name": "type-android.svg",
"mediaType": "image/svg+xml"
}
},
{
"id": "python-default",
"creator": "ide",
"name": "Python 3.5",
"name": "Python",
"description": "Default Python Stack with Python 3.5.1, pip 8.1.1.",
"scope": "general",
"tags": [
Expand Down Expand Up @@ -138,31 +208,36 @@
"mediaType": "image/svg+xml"
}
},
{
"id": "python-2.7",
{
"id": "cpp-default",
"creator": "ide",
"name": "Python 2.7",
"description": "Default Python Stack with Python 2.7.11, pip 8.1.1.",
"name": "C++",
"description": "Default C++ Stack with C++, gcc 4.8.4, GNU Make 3.81.",
"scope": "general",
"tags": [
"Python 2.7",
"pip",
"C++",
"gcc",
"make",
"Ubuntu",
"Git"
],
"components": [
{
"name": "Python",
"version": "2.7.11"
"name": "CPP",
"version": "4.8.4"
},
{
"name": "pip",
"version": "8.1.1"
"name": "gcc",
"version": "4.8.4"
},
{
"name": "Make",
"version": "3.81"
}
],
"source": {
"type": "image",
"origin": "codenvy/ubuntu_python:2.7"
"origin": "codenvy/cpp_gcc"
},
"workspaceConfig": {
"environments": [
Expand Down Expand Up @@ -201,7 +276,7 @@
"users": {}
},
"stackIcon": {
"name": "type-python.svg",
"name": "type-cpp.svg",
"mediaType": "image/svg+xml"
}
},
Expand Down Expand Up @@ -963,6 +1038,73 @@
"mediaType": "image/svg+xml"
}
},
{
"id": "python-2.7",
"creator": "ide",
"name": "Python 2.7",
"description": "Default Python Stack with Python 2.7.11, pip 8.1.1.",
"scope": "advanced",
"tags": [
"Python 2.7",
"pip",
"Ubuntu",
"Git"
],
"components": [
{
"name": "Python",
"version": "2.7.11"
},
{
"name": "pip",
"version": "8.1.1"
}
],
"source": {
"type": "image",
"origin": "codenvy/ubuntu_python:2.7"
},
"workspaceConfig": {
"environments": [
{
"name": "default",
"recipe": null,
"machineConfigs": [
{
"name": "default",
"limits": {
"ram": 1000
},
"source": {
"location": "stub",
"type": "dockerfile"
},
"type": "docker",
"dev": true
}
]
}
],
"name": "default",
"defaultEnv": "default",
"description": null},
"permissions": {
"groups": [
{
"acl": [
"read",
"search"
],
"name": "public"
}
],
"users": {}
},
"stackIcon": {
"name": "type-python.svg",
"mediaType": "image/svg+xml"
}
},
{
"id": "tomee-default",
"creator": "tomitribe",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 104 additions & 2 deletions core/ide/che-core-ide-templates/src/main/resources/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,108 @@
"tags": [
"blank"
]
},
{
"name": "c-simple-console",
"displayName": "c-simple-console",
"path": "/c-simple-console",
"description": "A simple Hello World in C.",
"projectType": "c",
"mixins": [],
"attributes": {},
"modules": [],
"problems": [],
"source": {
"type": "git",
"location": "https://github.com/che-samples/c-simple-console.git",
"parameters": {}
},
"commands": [
{
"name": "build and run",
"type": "custom",
"commandLine": "cd ${current.project.path} && gcc -o Hello Hello.c && ./Hello",
"attributes": {
"previewUrl": ""
}
}
],
"links": [],
"category": "Samples",
"tags": [
"cpp",
"gcc"
]
},
{
"name": "mobile-android-simple",
"displayName": "mobile-android-simple",
"path": "/mobile-android-simple",
"description": "Simple Android Project.",
"projectType": "maven",
"mixins": [],
"attributes": {
"language": [
"java"
]
},
"modules": [],
"problems": [],
"source": {
"type": "git",
"location": "https://github.com/che-samples/mobile-android-simple.git",
"parameters": {}
},
"commands": [
{
"name": "run",
"type": "custom",
"commandLine": "mvn -f ${current.project.path} clean install",
"attributes": {
"previewUrl": "http://${server.port.6080}"
}
}
],
"links": [],
"category": "Samples",
"tags": [
"Android"
]
},
{
"name": "mobile-android-hello-world",
"displayName": "mobile-android-hello-world",
"path": "/mobile-android-hello-world",
"description": "Simple Android Hello World.",
"projectType": "maven",
"mixins": [],
"attributes": {
"language": [
"java"
]
},
"modules": [],
"problems": [],
"source": {
"type": "git",
"location": "https://github.com/che-samples/mobile-android-hello-world.git",
"parameters": {}
},
"commands": [
{
"name": "run",
"type": "custom",
"commandLine": "mvn -f ${current.project.path} clean install",
"attributes": {
"previewUrl": "http://${server.port.6080}"
}
}
],
"links": [],
"category": "Samples",
"tags": [
"Android"
]
},
{
"name": "console-python3-simple",
Expand Down Expand Up @@ -115,15 +217,15 @@
{
"name": "install dependencies",
"type": "custom",
"commandLine": "cd ${current.project.path} && sudo bundle install",
"commandLine": "cd ${current.project.path} && bundle install",
"attributes": {
"previewUrl": ""
}
},
{
"name": "run",
"type": "custom",
"commandLine": "cd ${current.project.path} && sudo rails server -b 0.0.0.0",
"commandLine": "cd ${current.project.path} && rails server -b 0.0.0.0",
"attributes": {
"previewUrl": "http://${server.port.3000}"
}
Expand Down

0 comments on commit 17a5b55

Please sign in to comment.