Amazon CodeCatalyst는 더 이상 신규 고객에게 공개되지 않습니다. 기존 고객은 정상적으로 서비스를 계속 이용할 수 있습니다. 자세한 내용은 CodeCatalyst에서 마이그레이션하는 방법 섹션을 참조하세요.
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