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 f696555
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions dependencies/che-plugin-registry/che-editors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,19 @@ 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:
image: 'registry.redhat.io/devspaces/code-rhel8:3.6'
command: ["/entrypoint-init-container.sh"]
volumeMounts:
- name: checode
path: /checode
Expand Down Expand Up @@ -379,14 +384,19 @@ 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:
image: 'registry.redhat.io/devspaces/code-rhel8:3.6'
command: ["/entrypoint-init-container.sh"]
volumeMounts:
- name: checode
path: /checode
Expand Down

0 comments on commit f696555

Please sign in to comment.