我有一个具有以下配置的工作区
{
"environments": {
"default": {
"machines": {
"db": {
"attributes": {
"memoryLimitBytes": "536870912"
},
"servers": {},
"agents": [
"org.eclipse.che.terminal",
"org.eclipse.che.exec"
]
},
"dev-machine": {
"attributes": {
"memoryLimitBytes": "2684354560"
},
"servers": {},
"agents": [
"org.eclipse.che.ssh",
"org.eclipse.che.ws-agent",
"org.eclipse.che.terminal",
"org.eclipse.che.exec"
]
}
},
"recipe": {
"type": "compose",
"content": "services:\n db:\n image: 'terrywbrady/dspacedb:latest'\n mem_limit: 1073741824\n dev-machine:\n image: 'terrywbrady/dspace:latest'\n mem_limit: 2147483648\n depends_on:\n - db\n",
"contentType": "application/x-yaml"
}
}
},
...
}
我可以启动我的工作区、构建代码并部署到 tomcat。数据被写入 postgres。
当我停止我的工作区然后重新启动它时,我所有的构建内容都消失了。
如何声明将从工作区会话持续到工作区会话的卷?