데브파일 명령 - 아마존 CodeCatalyst

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

데브파일 명령

현재는 devfile의 CodeCatalyst 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

CodeCatalyst devfile 버전 exec 2.0.0에서 다음 파라미터를 지원합니다.

  • commandLine

  • component

  • id

  • workingDir