기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
Devfile 명령
현재 CodeCatalyst는 devfile의 exec
명령만 지원합니다. 자세한 내용을 알아보려면 Devfile.io 설명서의 명령 추가
다음 예시에서는 devfile에서 exec
명령을 지정하는 방법을 보여줍니다.
commands:
- id: setupscript
exec:
component: test
commandLine: "chmod +x script.sh"
workingDir: /projects/devfiles
- id: executescript
exec:
component: test
commandLine: "./projects/devfiles/script.sh"
- id: updateyum
exec:
component: test
commandLine: "yum -y update --security"
개발 환경에 연결한 후 터미널을 통해 정의된 명령을 실행할 수 있습니다.
/aws/mde/mde command
<command-id>
/aws/mde/mde command executescript
장기 실행 명령의 경우 -s
스트리밍 플래그를 사용하여 명령 실행을 실시간으로 출력할 수 있습니다.
/aws/mde/mde -s command
<command-id>
참고
command-id
는 소문자여야 합니다.
CodeCatalyst에서 지원하는 Exec 파라미터
CodeCatalyst는 devfile 버전 2.0.0에서 다음 exec
파라미터를 지원합니다.
commandLine
component
id
workingDir