From 3ccc9ffca87df3c29a36dc9eec9e1baf3b141def Mon Sep 17 00:00:00 2001 From: chakradhar886 Date: Mon, 20 Apr 2026 12:09:37 +0530 Subject: [PATCH 1/2] fix: update env_train Dockerfile from Python 3.8 to 3.10 Python 3.8 is EOL. The AzureML inference builder on ubuntu22.04 can no longer create containers with Python 3.8, causing ImageBuildFailure when deploying MLflow models trained with this environment. Update base image to python:3.10 and loosen dependency pins for compatibility. --- .../nyc_taxi_data_regression/env_train/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile b/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile index ef9ef45e52..77afe928f5 100644 --- a/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile +++ b/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile @@ -1,12 +1,12 @@ -FROM python:3.8.13 +FROM python:3.10 # Install pip dependencies -RUN pip install 'matplotlib>=3.3,<3.4' \ - 'psutil>=5.8,<5.9' \ - 'tqdm>=4.59,<4.60' \ - 'pandas>=1.1,<1.2' \ - 'scipy>=1.5,<1.6' \ - 'numpy>=1.10,<1.20' \ +RUN pip install 'matplotlib' \ + 'psutil' \ + 'tqdm' \ + 'pandas' \ + 'scipy' \ + 'numpy<2' \ 'ipykernel~=6.0' \ 'azureml-core' \ 'azureml-defaults' \ From 05caf1eb9b32c7c78abbaf8706529456e055156d Mon Sep 17 00:00:00 2001 From: chakradhar886 Date: Mon, 20 Apr 2026 12:09:37 +0530 Subject: [PATCH 2/2] fix: update env_train Dockerfile from Python 3.8 to 3.10 Python 3.8 is EOL. The AzureML inference builder on ubuntu22.04 can no longer create containers with Python 3.8, causing ImageBuildFailure when deploying MLflow models trained with this environment. Update base image to python:3.10 and loosen dependency pins for compatibility. --- ...gistry-share-models-components-environments.yml | 1 + .../nyc_taxi_data_regression/env_train/Dockerfile | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sdk-assets-assets-in-registry-share-models-components-environments.yml b/.github/workflows/sdk-assets-assets-in-registry-share-models-components-environments.yml index 291900f03c..d2b6c03e79 100644 --- a/.github/workflows/sdk-assets-assets-in-registry-share-models-components-environments.yml +++ b/.github/workflows/sdk-assets-assets-in-registry-share-models-components-environments.yml @@ -19,6 +19,7 @@ on: - sdk/python/dev-requirements.txt - infra/bootstrapping/** - sdk/python/setup.sh + - cli/jobs/pipelines-with-components/nyc_taxi_data_regression/** permissions: id-token: write diff --git a/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile b/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile index ef9ef45e52..77afe928f5 100644 --- a/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile +++ b/cli/jobs/pipelines-with-components/nyc_taxi_data_regression/env_train/Dockerfile @@ -1,12 +1,12 @@ -FROM python:3.8.13 +FROM python:3.10 # Install pip dependencies -RUN pip install 'matplotlib>=3.3,<3.4' \ - 'psutil>=5.8,<5.9' \ - 'tqdm>=4.59,<4.60' \ - 'pandas>=1.1,<1.2' \ - 'scipy>=1.5,<1.6' \ - 'numpy>=1.10,<1.20' \ +RUN pip install 'matplotlib' \ + 'psutil' \ + 'tqdm' \ + 'pandas' \ + 'scipy' \ + 'numpy<2' \ 'ipykernel~=6.0' \ 'azureml-core' \ 'azureml-defaults' \