2.7. 指定托管 IDE 的 devfile 组件
默认情况下,OpenShift Dev Spaces 在 devfile 中指定的第一个容器中托管 IDE (Microsoft Visual Studio - Open Source Code 或 JetBrains IntelliJ IDEA 社区版本)。在这个版本中,您可以使用属性 controller.devfile.io/merge-contribution: true 指定托管 IDE 的组件。
在以下示例中,IDE 将托管在 "component2" 中:
schemaVersion: 2.2.0
components:
- name: component1
container:
image: quay.io/sclorg/postgresql-15-c9s:c9s
- name: component2
attributes:
controller.devfile.io/merge-contribution: true
container:
image: quay.io/devfile/developer-base-image:latest
其他资源