Skip to content

Commit

Permalink
Add stable Che Code to che editors
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
  • Loading branch information
mkuznyetsov committed Sep 21, 2022
1 parent 7ded945 commit 6f7c034
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
82 changes: 82 additions & 0 deletions che-editors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f7c034

Please sign in to comment.