然后我创建了两个具有以下配置的 Che 堆栈:
{
"scope": "general",
"description": "Custom1",
"tags": [],
"workspaceConfig": {
"environments": {
"default": {
"recipe": {
"contentType": "text/x-dockerfile",
"type": "dockerfile",
"content": "FROM my-custom-image\n"
},
"machines": {
"dev-machine": {
"servers": {},
"agents": [
"org.eclipse.che.ws-agent",
"org.eclipse.che.ssh",
"org.eclipse.che.terminal",
"org.eclipse.che.exec"
],
"attributes": {
"memoryLimitBytes": "2147483648"
}
}
}
}
},
"defaultEnv": "default",
"commands": [],
"projects": [],
"name": "default",
"links": []
},
"components": [],
"creator": "che",
"name": "my-custom-1",
"id": "stackx6hs410a9awhu299"
}
{
"scope": "general",
"description": "Custom2",
"tags": [],
"workspaceConfig": {
"environments": {
"default": {
"recipe": {
"contentType": "application/x-yaml",
"type": "compose",
"content": "services:\n dev-machine:\n image: my-custom-image\n"
},
"machines": {
"dev-machine": {
"servers": {},
"agents": [
"org.eclipse.che.exec",
"org.eclipse.che.terminal",
"org.eclipse.che.ws-agent",
"org.eclipse.che.ssh"
],
"attributes": {
"memoryLimitBytes": "2147483648"
}
}
}
}
},
"defaultEnv": "default",
"commands": [],
"projects": [],
"name": "custom",
"links": []
},
"components": [],
"creator": "che",
"name": "my-custom-2",
"id": "stack55s3tso56cljsf30"
}