Skip to content

Commit aaefd28

Browse files
authored
Introduced PlatformIO stack with couple of samples (eclipse-che#2887)
Introduced PlatformIO stack with couple of samples See how to use eclipse-che#2887
1 parent 7ec2990 commit aaefd28

2 files changed

Lines changed: 173 additions & 4 deletions

File tree

ide/che-core-ide-stacks/src/main/resources/stacks.json

Lines changed: 109 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@
895895
"machines": {
896896
"dev-machine": {
897897
"agents": [
898-
"org.eclipse.che.terminal",
899-
"org.eclipse.che.ws-agent",
898+
"org.eclipse.che.terminal",
899+
"org.eclipse.che.ws-agent",
900900
"org.eclipse.che.ssh",
901901
"org.eclipse.che.ls.csharp",
902902
"org.eclipse.che.ls.json",
@@ -1440,7 +1440,7 @@
14401440
"source": {
14411441
"type": "image",
14421442
"origin": "codenvy/ubuntu_jre"
1443-
}
1443+
}
14441444
},
14451445
{
14461446
"id": "bitnami-express",
@@ -1984,7 +1984,7 @@
19841984
"name": "default",
19851985
"defaultEnv": "default",
19861986
"description": null,
1987-
"commands": [
1987+
"commands": [
19881988
{
19891989
"name": "restart zend server",
19901990
"type": "custom",
@@ -2015,5 +2015,110 @@
20152015
"name": "type-zend.svg",
20162016
"mediaType": "image/svg+xml"
20172017
}
2018+
},
2019+
{
2020+
"id": "platformio",
2021+
"creator": "ide",
2022+
"name": "PlatformIO",
2023+
"description": "Stack for IoT development",
2024+
"scope": "general",
2025+
"tags": [
2026+
"PlatformIO",
2027+
"IoT",
2028+
"embedded",
2029+
"arduino",
2030+
"mbed"
2031+
],
2032+
"components": [
2033+
{
2034+
"name": "Python",
2035+
"version": "2.7"
2036+
},
2037+
{
2038+
"name": "pip",
2039+
"version": "8.1.1"
2040+
},
2041+
{
2042+
"name": "PlatformIO",
2043+
"version": "3.2.0"
2044+
}
2045+
],
2046+
"source": {
2047+
"type": "image",
2048+
"origin": "code/pio:latest"
2049+
},
2050+
"workspaceConfig": {
2051+
"environments": {
2052+
"default": {
2053+
"machines": {
2054+
"dev-machine": {
2055+
"agents": [
2056+
"org.eclipse.che.terminal", "org.eclipse.che.ws-agent", "org.eclipse.che.ssh"
2057+
],
2058+
"servers": {},
2059+
"attributes" : {
2060+
"memoryLimitBytes": "2147483648",
2061+
"auto_snapshot": "true",
2062+
"auto_restore": "true"
2063+
2064+
}
2065+
}
2066+
},
2067+
"recipe": {
2068+
"location": "eclipse/platformio:latest",
2069+
"type": "dockerimage"
2070+
}
2071+
}
2072+
},
2073+
"name": "default",
2074+
"defaultEnv": "default",
2075+
"description": null,
2076+
"commands": [
2077+
{
2078+
"name": "run",
2079+
"type": "custom",
2080+
"commandLine": "pio run -d ${current.project.path}",
2081+
"attributes": {
2082+
"previewUrl": ""
2083+
}
2084+
},
2085+
{
2086+
"name": "upload",
2087+
"type": "custom",
2088+
"commandLine": "pio run -d ${current.project.path} -t upload",
2089+
"attributes": {
2090+
"previewUrl": ""
2091+
}
2092+
},
2093+
{
2094+
"name": "clean",
2095+
"type": "custom",
2096+
"commandLine": "pio run -d ${current.project.path} -t clean",
2097+
"attributes": {
2098+
"previewUrl": ""
2099+
}
2100+
},
2101+
{
2102+
"name": "Remote: Device list",
2103+
"type": "custom",
2104+
"commandLine": "pio remote device list",
2105+
"attributes": {
2106+
"previewUrl": ""
2107+
}
2108+
},
2109+
{
2110+
"name": "Remote: Upload",
2111+
"type": "custom",
2112+
"commandLine": "pio remote run -d ${current.project.path} -t upload",
2113+
"attributes": {
2114+
"previewUrl": ""
2115+
}
2116+
}
2117+
]
2118+
},
2119+
"stackIcon": {
2120+
"name": "type-python.svg",
2121+
"mediaType": "image/svg+xml"
2122+
}
20182123
}
20192124
]

ide/che-core-ide-templates/src/main/resources/samples.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,5 +1357,69 @@
13571357
"tags": [
13581358
"Zend"
13591359
]
1360+
},
1361+
{
1362+
"name": "platformio-arduino-blink",
1363+
"displayName": "platformio-arduino-blink",
1364+
"path": "/arduino-blink",
1365+
"description": "Arduino blink sample",
1366+
"projectType": "cpp",
1367+
"mixins": [],
1368+
"attributes": {
1369+
"language": [
1370+
"cpp"
1371+
]
1372+
},
1373+
"modules": [],
1374+
"problems": [],
1375+
"source": {
1376+
"type": "git",
1377+
"location": "https://github.com/platformio/platformio-examples.git",
1378+
"parameters": {
1379+
"keepDir":"atmelavr-and-arduino/arduino-blink",
1380+
"keepVcs": "false",
1381+
"convertToTopLevelProject": "true"
1382+
}
1383+
},
1384+
"commands": [
1385+
1386+
],
1387+
"links": [],
1388+
"category": "Samples",
1389+
"tags": [
1390+
"Platformio"
1391+
]
1392+
},
1393+
{
1394+
"name": "platformio-mbed-blink",
1395+
"displayName": "platformio-mbed-blink",
1396+
"path": "/mbed-blink",
1397+
"description": "Mbed blink sample",
1398+
"projectType": "cpp",
1399+
"mixins": [],
1400+
"attributes": {
1401+
"language": [
1402+
"cpp"
1403+
]
1404+
},
1405+
"modules": [],
1406+
"problems": [],
1407+
"source": {
1408+
"type": "git",
1409+
"location": "https://github.com/platformio/platformio-examples.git",
1410+
"parameters": {
1411+
"keepDir":"mbed/mbed-blink",
1412+
"keepVcs": "false",
1413+
"convertToTopLevelProject": "true"
1414+
}
1415+
},
1416+
"commands": [
1417+
1418+
],
1419+
"links": [],
1420+
"category": "Samples",
1421+
"tags": [
1422+
"Platformio"
1423+
]
13601424
}
13611425
]

0 commit comments

Comments
 (0)