Skip to content

Commit

Permalink
Use post-start event to start VS Code
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Nikitenko <[email protected]>
  • Loading branch information
RomanNikitenko committed Mar 3, 2023
1 parent 1decf3f commit 1a5d1ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .che/che-editor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ inline:
- 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 @@ -40,8 +46,6 @@ inline:
memoryRequest: 256Mi
cpuLimit: 500m
cpuRequest: 30m
command:
- /checode/entrypoint-volume.sh
volumeMounts:
- name: checode
path: /checode
Expand Down

0 comments on commit 1a5d1ab

Please sign in to comment.