From 6f7c034374ceb2a732dfad7176e85bf85e8dbb6a Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Tue, 20 Sep 2022 15:34:15 +0300 Subject: [PATCH] Add stable Che Code to che editors Signed-off-by: Mykhailo Kuznietsov --- che-editors.yaml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ make-release.sh | 9 ++++++ 2 files changed, 91 insertions(+) diff --git a/che-editors.yaml b/che-editors.yaml index b9682dba47..b3f62d8152 100644 --- a/che-editors.yaml +++ b/che-editors.yaml @@ -551,6 +551,88 @@ editors: app.kubernetes.io/part-of: che-code.eclipse.org - name: checode volume: {} + - schemaVersion: 2.1.0 + metadata: + name: che-incubator/che-code/7.53.0 + displayName: che-code + description: Code OSS integration in Eclipse Che. + icon: https://raw.githubusercontent.com/che-incubator/che-code/main/code/resources/server/code-512.png?sanitize=true + attributes: + publisher: che-incubator + version: insiders + title: CheCode Insiders. + repository: https://github.com/che-incubator/che-code + firstPublicationDate: '2021-10-31' + skipMetaYaml: true + commands: + - id: init-container-command + apply: + component: che-code-injector + events: + preStart: + - init-container-command + components: + - name: che-code-injector + container: + image: 'quay.io/che-incubator/che-code:7.53.0' + command: ["/entrypoint-init-container.sh"] + volumeMounts: + - name: checode + path: /checode + memoryLimit: 128Mi + memoryRequest: 32Mi + cpuLimit: 500m + cpuRequest: 30m + - name: che-code-runtime-description + container: + image: 'quay.io/devfile/universal-developer-image:ubi8-770ea4a' + memoryLimit: 1024Mi + memoryRequest: 256Mi + cpuLimit: 500m + cpuRequest: 30m + command: + - /checode/entrypoint-volume.sh + volumeMounts: + - name: checode + path: /checode + endpoints: + - name: che-code + attributes: + type: main + cookiesAuthEnabled: true + discoverable: false + urlRewriteSupported: true + path: '?tkn=eclipse-che' + targetPort: 3100 + exposure: public + secure: true + protocol: http + - name: code-redirect-1 + targetPort: 13131 + exposure: public + protocol: http + attributes: + discoverable: false + urlRewriteSupported: true + - name: code-redirect-2 + targetPort: 13132 + exposure: public + protocol: http + attributes: + discoverable: false + urlRewriteSupported: true + - name: code-redirect-3 + targetPort: 13133 + exposure: public + protocol: http + attributes: + discoverable: false + urlRewriteSupported: true + attributes: + app.kubernetes.io/component: che-code-runtime + app.kubernetes.io/part-of: che-code.eclipse.org + - name: checode + volume: {} - schemaVersion: 2.1.0 metadata: name: che-incubator/che-idea/next diff --git a/make-release.sh b/make-release.sh index c0747cfe04..33bd3f5c34 100755 --- a/make-release.sh +++ b/make-release.sh @@ -130,6 +130,15 @@ createNewPlugins () { sed -i "che-editors.yaml" \ -e "s#image: \(['\"]*\)quay.io/${cheTheiaEndpointRuntimeBinary}:\([0-9]\+\.[0-9]\+\.[0-9]\+\)\1#image: \1quay.io/${cheTheiaEndpointRuntimeBinary}:${newVERSION}\1#" + # Now do che-code in che-editors.yaml + cheCode="che-incubator/che-code" + sed -i "che-editors.yaml" \ + -e "s#id: ${cheCode}/\([0-9]\+\.[0-9]\+\.[0-9]\+\)#id: ${cheCode}/${newVERSION}#" + sed -i "che-editors.yaml" \ + -e "s#name: ${cheCode}/\([0-9]\+\.[0-9]\+\.[0-9]\+\)#name: ${cheCode}/${newVERSION}#" + sed -i "che-editors.yaml" \ + -e "s#image: \(['\"]*\)quay.io/${cheCode}:\([0-9]\+\.[0-9]\+\.[0-9]\+\)\1#image: \1quay.io/${cheCode}:${newVERSION}\1#" + # update package.json with the new version sed -i -r -e "s/(\"version\": )(\".*\")/\1\"${newVERSION}\"/" tools/build/package.json