From 7a6b9ed5cd31866431bb7b0da5d8791ab0484832 Mon Sep 17 00:00:00 2001 From: Saanika Gupta Date: Tue, 16 Sep 2025 11:24:44 +0530 Subject: [PATCH 1/4] Fix tcltk2 package installation in R Dockerfiles --- .../basics/6c_r_iris/docker-context/Dockerfile | 2 +- .../docker_context/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile b/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile index 3f9dce0327..2d0d3ab91e 100644 --- a/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile +++ b/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile @@ -19,4 +19,4 @@ RUN ln -f /usr/bin/python3 /usr/bin/python RUN R -e "install.packages(c('mlflow'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('carrier'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('optparse'), repos = 'https://cloud.r-project.org/')" -RUN R -e "install.packages(c('tcltk2'), repos = 'https://cloud.r-project.org/')" +RUN R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/tcltk2/tcltk2_1.2-11.tar.gz', repos=NULL, type='source');" diff --git a/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile b/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile index d8adc7a5dd..ac74a9c398 100644 --- a/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile +++ b/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile @@ -19,4 +19,4 @@ RUN ln -f /usr/bin/python3 /usr/bin/python RUN R -e "install.packages(c('mlflow'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('carrier'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('optparse'), repos = 'https://cloud.r-project.org/')" -RUN R -e "install.packages(c('tcltk2'), repos = 'https://cloud.r-project.org/')" \ No newline at end of file +RUN R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/tcltk2/tcltk2_1.2-11.tar.gz', repos=NULL, type='source');" \ No newline at end of file From b880fda146907ba04ec04713455d58ef11a382dc Mon Sep 17 00:00:00 2001 From: Pratibha Shrivastav Date: Wed, 17 Sep 2025 14:35:28 +0530 Subject: [PATCH 2/4] update component version to force rebuild --- .../pipelines-with-components/basics/6c_r_iris/component.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml b/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml index 3d01b7ca03..12ae5bf981 100644 --- a/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml +++ b/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml @@ -3,7 +3,7 @@ type: command display_name: r-iris-example description: Train an R model on the Iris dataset. name: r-iris-example -version: 01 +version: 02 command: > Rscript train.R From fb7286d0cefd8bb80f203df09eca99dfccecad78 Mon Sep 17 00:00:00 2001 From: Saanika Gupta Date: Wed, 17 Sep 2025 14:49:47 +0530 Subject: [PATCH 3/4] Add comments --- .../basics/6c_r_iris/docker-context/Dockerfile | 1 + .../docker_context/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile b/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile index 2d0d3ab91e..f4513e914b 100644 --- a/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile +++ b/cli/jobs/pipelines-with-components/basics/6c_r_iris/docker-context/Dockerfile @@ -19,4 +19,5 @@ RUN ln -f /usr/bin/python3 /usr/bin/python RUN R -e "install.packages(c('mlflow'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('carrier'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('optparse'), repos = 'https://cloud.r-project.org/')" +# R 4.0.0 compatible version of tcltk2 RUN R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/tcltk2/tcltk2_1.2-11.tar.gz', repos=NULL, type='source');" diff --git a/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile b/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile index ac74a9c398..76e56fb895 100644 --- a/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile +++ b/sdk/python/jobs/pipelines/1d_pipeline_with_non_python_components/docker_context/Dockerfile @@ -19,4 +19,5 @@ RUN ln -f /usr/bin/python3 /usr/bin/python RUN R -e "install.packages(c('mlflow'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('carrier'), repos = 'https://cloud.r-project.org/')" RUN R -e "install.packages(c('optparse'), repos = 'https://cloud.r-project.org/')" +# R 4.0.0 compatible version of tcltk2 RUN R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/tcltk2/tcltk2_1.2-11.tar.gz', repos=NULL, type='source');" \ No newline at end of file From 8fbcaaebc339bf8c915a2c7412ed6397d7272643 Mon Sep 17 00:00:00 2001 From: Saanika Gupta Date: Wed, 17 Sep 2025 15:26:23 +0530 Subject: [PATCH 4/4] Revert "update component version to force rebuild" This reverts commit b880fda146907ba04ec04713455d58ef11a382dc. --- .../pipelines-with-components/basics/6c_r_iris/component.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml b/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml index 12ae5bf981..3d01b7ca03 100644 --- a/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml +++ b/cli/jobs/pipelines-with-components/basics/6c_r_iris/component.yml @@ -3,7 +3,7 @@ type: command display_name: r-iris-example description: Train an R model on the Iris dataset. name: r-iris-example -version: 02 +version: 01 command: > Rscript train.R