From 12751d5dca3853829ad05382ade72b6113496c3b Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Wed, 22 Mar 2023 10:42:11 +0200 Subject: [PATCH] feat: Use post-start event to start VS Code Signed-off-by: Roman Nikitenko --- .../che-plugin-registry/che-editors.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dependencies/che-plugin-registry/che-editors.yaml b/dependencies/che-plugin-registry/che-editors.yaml index fdc7c561c..65ddb575a 100644 --- a/dependencies/che-plugin-registry/che-editors.yaml +++ b/dependencies/che-plugin-registry/che-editors.yaml @@ -297,9 +297,15 @@ editors: - id: init-container-command apply: component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: 'nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt 2>&1 &' events: preStart: - init-container-command + postStart: + - init-che-code-command components: - name: che-code-injector container: @@ -319,8 +325,6 @@ editors: memoryRequest: 256Mi cpuLimit: 500m cpuRequest: 30m - command: - - /checode/entrypoint-volume.sh volumeMounts: - name: checode path: /checode @@ -379,9 +383,15 @@ editors: - id: init-container-command apply: component: che-code-injector + - id: init-che-code-command + exec: + component: che-code-runtime-description + commandLine: 'nohup /checode/entrypoint-volume.sh > /checode/entrypoint-logs.txt 2>&1 &' events: preStart: - init-container-command + postStart: + - init-che-code-command components: - name: che-code-injector container: @@ -401,8 +411,6 @@ editors: memoryRequest: 256Mi cpuLimit: 500m cpuRequest: 30m - command: - - /checode/entrypoint-volume.sh volumeMounts: - name: checode path: /checode