次の方法で共有


DockerBuildContext クラス

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

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

継承
azureml._base_sdk_common.abstract_run_config_element._AbstractRunConfigElement
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 オブジェクト。