diff --git a/packages/dashboard-backend/src/constants/examples.ts b/packages/dashboard-backend/src/constants/examples.ts index d488c6819..f88991b53 100644 --- a/packages/dashboard-backend/src/constants/examples.ts +++ b/packages/dashboard-backend/src/constants/examples.ts @@ -62,101 +62,80 @@ export const devWorkspaceResourcesExample = { const devfile = { schemaVersion: '2.2.2', metadata: { - name: 'che-pycharm-server', - displayName: 'Jet Brains PyCharm Professional Edition (desktop)', - description: 'JetBrains PyCharm Professional Edition for Eclipse Che - latest', + description: + 'Microsoft Visual Studio Code - Open Source IDE for Eclipse Che - Insiders build', + displayName: 'VS Code - Open Source', + name: 'che-code', tags: ['Tech-Preview'], attributes: { - publisher: 'che-incubator', - version: 'latest', - provider: - 'Provided by [Jet Brains](https://www.jetbrains.com/) under [License](https://www.jetbrains.com/legal/docs/toolbox/user/)', - title: 'JetBrains PyCharm Professional Edition for Eclipse Che - latest', - repository: 'https://github.com/che-incubator/che-idea-dev-server', - firstPublicationDate: '2024-18-09', - iconMediatype: 'image/svg+xml', - iconData: - '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n', + title: 'VS Code - Open Source', }, }, commands: [ { - id: 'inject-editor', apply: { - component: 'editor-injector', + component: 'che-code-injector', }, + id: 'init-container-command', }, { - id: 'start-ide-server', exec: { - component: 'editor-runtime', - commandLine: 'nohup /idea-server/entrypoint-volume.sh > /idea-server/std.out 2>&1 &', + commandLine: + 'nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt 2>&1 &', + component: 'che-code-runtime-description', }, + id: 'init-che-code-command', }, ], - events: { - preStart: ['inject-editor'], - postStart: ['start-ide-server'], - }, components: [ { - name: 'idea-server', - volume: {}, - }, - { - name: 'editor-injector', container: { - image: 'quay.io/che-incubator/che-idea-dev-server:latest', - command: ['/entrypoint-init-container.sh', 'pycharm'], - volumeMounts: [ - { - name: 'idea-server', - path: '/idea-server', - }, - ], - memoryLimit: '256Mi', - memoryRequest: '32Mi', - cpuLimit: '500m', - cpuRequest: '30m', + command: ['/entrypoint-init-container.sh'], + image: 'quay.io/che-incubator/che-code:insiders', }, + name: 'che-code-injector', }, { - name: 'editor-runtime', + attributes: { + 'app.kubernetes.io/component': 'che-code-runtime', + 'app.kubernetes.io/part-of': 'che-code.eclipse.org', + 'controller.devfile.io/container-contribution': true, + }, container: { - image: 'quay.io/devfile/universal-developer-image:latest', - memoryLimit: '6144Mi', - memoryRequest: '2048Mi', - cpuLimit: '2000m', - cpuRequest: '1500m', - volumeMounts: [ - { - name: 'idea-server', - path: '/idea-server', - }, - ], endpoints: [ { - name: 'idea-server', attributes: { - type: 'main', cookiesAuthEnabled: true, discoverable: false, + type: 'main', urlRewriteSupported: true, }, - targetPort: 3400, exposure: 'public', - secure: true, + name: 'che-code', protocol: 'https', + secure: true, + targetPort: 3100, + }, + ], + image: 'quay.io/devfile/universal-developer-image:latest', + volumeMounts: [ + { + name: 'checode', + path: '/checode', }, ], }, - attributes: { - 'app.kubernetes.io/component': 'editor-runtime', - 'app.kubernetes.io/part-of': 'ide-server.eclipse.org', - 'controller.devfile.io/container-contribution': true, - }, + name: 'che-code-runtime-description', + }, + { + name: 'checode', + volume: {}, }, ], + events: { + postStart: ['init-che-code-command'], + preStart: ['init-container-command'], + }, }; return dump(devfile, { indent: 2 });