2.2. 여러 postStart 이벤트
이번 업데이트를 통해 OpenShift Dev Spaces는 devfiles에서 여러 postStart 이벤트를 지원합니다.
참고
복합 명령은 현재 postStart 이벤트로 지원되지 않습니다.
예 2.1. postStart 이벤트로 두 개의 명령이 있는 devfile 예
schemaVersion: 2.1.0
metadata:
name: multi-post-start
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image
commands:
- id: first-command
exec:
component: tools
commandLine: "echo first command"
- id: second-command
exec:
component: tools
commandLine: "echo second command"
events:
postStart:
- first-command
- second-command
추가 리소스