Skip to content

Commit

Permalink
feat: Use post-start event to start VS Code
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
  • Loading branch information
RomanNikitenko committed Mar 22, 2023
1 parent bf43f99 commit 12751d5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions dependencies/che-plugin-registry/che-editors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -319,8 +325,6 @@ editors:
memoryRequest: 256Mi
cpuLimit: 500m
cpuRequest: 30m
command:
- /checode/entrypoint-volume.sh
volumeMounts:
- name: checode
path: /checode
Expand Down Expand Up @@ -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:
Expand All @@ -401,8 +411,6 @@ editors:
memoryRequest: 256Mi
cpuLimit: 500m
cpuRequest: 30m
command:
- /checode/entrypoint-volume.sh
volumeMounts:
- name: checode
path: /checode
Expand Down

0 comments on commit 12751d5

Please sign in to comment.