Share via


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
Workspace
必須

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

path
str
必須

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

dockerfile_path
str
既定値: Dockerfile

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

戻り値

DockerBuildContext オブジェクト。

の戻り値の型 :