From ebf56c611f975f36b3a74381b979761101f4f7e7 Mon Sep 17 00:00:00 2001 From: Roman Nikitenko Date: Wed, 1 Feb 2023 15:19:41 +0200 Subject: [PATCH] feat: Use post-start event to start VS Code Signed-off-by: Roman Nikitenko --- che-editors.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/che-editors.yaml b/che-editors.yaml index 0579c2595e..47c8484971 100644 --- a/che-editors.yaml +++ b/che-editors.yaml @@ -344,9 +344,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: @@ -366,8 +372,6 @@ editors: memoryRequest: 256Mi cpuLimit: 500m cpuRequest: 30m - command: - - /checode/entrypoint-volume.sh volumeMounts: - name: checode path: /checode @@ -426,9 +430,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: @@ -448,8 +458,6 @@ editors: memoryRequest: 256Mi cpuLimit: 500m cpuRequest: 30m - command: - - /checode/entrypoint-volume.sh volumeMounts: - name: checode path: /checode