8000 {AzureML} fix for the LocalEndpointImageBuildError (#28461) · Azure/azure-sdk-for-python@59a5837 · GitHub
[go: up one dir, main page]

Skip to content

Commit 59a5837

Browse files
authored
{AzureML} fix for the LocalEndpointImageBuildError (#28461)
LocalEndpointImageBuildError: - Local deployment with custom Dockerfile due to wrong path On this line, absolute_build_directory should be referenced instead of absolute_dockerfile_path Reproduce: env = Environment( build=BuildContext(path=".", dockerfile_path="Dockerfile") ) deployment_config=ManagedOnlineDeployment( environment=env, ... ) MLClient.online_deployments.begin_create_or_update(deployment_config, local=True) AFAIK, LocalEndpointImageBuildError can occur when deploying an endpoint locally and using a custom Dockerfile, if the path to the Dockerfile is incorrect. To resolve this error, you need to check that the path to the Dockerfile specified in the deployment configuration is correct and that the Dockerfile is in the correct location
1 parent 698471b commit 59a5837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_local_endpoints/validators/environment_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _get_local_environment_artifacts(base_path: str, environment: Environment):
128128
None,
129129
None,
130130
None,
131-
absolute_dockerfile_path,
131+
absolute_build_directory,
132132
dockerfile_contents,
133133
environment.inference_config,
134134
)

0 commit comments

Comments
 (0)
0