次の方法で共有


DockerBuildContext クラス

Docker ビルド コンテキストを定義します。

クラス DockerBuildContext コンストラクター。

コンストラクター

DockerBuildContext(location_type=None, ___location=None, dockerfile_path='Dockerfile')

パラメーター

名前 説明
location_type
規定値: None
___location
規定値: None
dockerfile_path
規定値: Dockerfile

変数

名前 説明
azureml.core.environment.DockerBuildContext.location_type

Docker ビルド コンテキストの場所の種類

azureml.core.environment.DockerBuildContext.___location

Docker ビルド コンテキストの場所。

dockerfile_path
str

ビルド コンテキストのルートを基準とする Dockerfile のパス。既定では Dockerfile です。

メソッド

from_local_directory

Docker ビルド コンテキストを含むローカル ディレクトリから DockerBuildContext オブジェクトを作成します。

from_local_directory

Docker ビルド コンテキストを含むローカル ディレクトリから DockerBuildContext オブジェクトを作成します。

static from_local_directory(workspace, path, dockerfile_path='Dockerfile')

パラメーター

名前 説明
workspace
必須

環境が作成されるワークスペース。

path
必須
str

Docker ビルド コンテキストを含むディレクトリへのパス。

dockerfile_path
str

Docker ビルド コンテキストのルートを基準とした Dockerfile パス。既定では Dockerfile です。

規定値: Dockerfile

戻り値

説明

DockerBuildContext オブジェクト。