Devfile 元件 - Amazon CodeCatalyst

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

Devfile 元件

目前,CodeCatalyst 僅支援您 devfile 中的container元件。如需詳細資訊,請參閱 https://Devfile.io 文件中的新增元件

下列範例示範如何將啟動命令新增至您 devfile 中的容器。

components: - name: test container: image: public.ecr.aws/amazonlinux/amazonlinux:2 command: ['sleep', 'infinity']
注意

當容器具有短暫的即時項目命令時,您必須包含 command: ['sleep', 'infinity']才能讓容器保持執行。

CodeCatalyst 也支援容器元件中的下列屬性:argsmountSourcesenvvolumeMounts