From e9a2cfae6d3af69a11583b36e977b1003508cc83 Mon Sep 17 00:00:00 2001 From: atheo89 Date: Thu, 9 Oct 2025 12:31:35 +0200 Subject: [PATCH 1/2] Disable R Packages intallation for RHEL RStudio flavor (cherry picked from commit 9ec4b0acb0117dc1de12f56e946eaf9586b8247f) --- rstudio/rhel9-python-3.12/Dockerfile.cpu | 11 +++++------ rstudio/rhel9-python-3.12/Dockerfile.cuda | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/rstudio/rhel9-python-3.12/Dockerfile.cpu b/rstudio/rhel9-python-3.12/Dockerfile.cpu index 8b2f10461d..e9b5434c93 100644 --- a/rstudio/rhel9-python-3.12/Dockerfile.cpu +++ b/rstudio/rhel9-python-3.12/Dockerfile.cpu @@ -167,14 +167,13 @@ EOF COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf -# Install R packages -# https://cran.r-project.org/web/packages -COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ -RUN /bin/bash <<'EOF' +# # Install R packages +# # https://cran.r-project.org/web/packages +# COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ +# RUN /bin/bash <<'EOF' set -Eeuxo pipefail R -f ./install_packages.R -rm ./install_packages.R -EOF +# rm ./install_packages.REOF ENV APP_ROOT=/opt/app-root diff --git a/rstudio/rhel9-python-3.12/Dockerfile.cuda b/rstudio/rhel9-python-3.12/Dockerfile.cuda index 7bc6966379..c815bffd75 100644 --- a/rstudio/rhel9-python-3.12/Dockerfile.cuda +++ b/rstudio/rhel9-python-3.12/Dockerfile.cuda @@ -181,14 +181,13 @@ EOF COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf -# Install R packages -# https://cran.r-project.org/web/packages -COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ -RUN /bin/bash <<'EOF' +# # Install R packages +# # https://cran.r-project.org/web/packages +# COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ +# RUN /bin/bash <<'EOF' set -Eeuxo pipefail R -f ./install_packages.R -rm ./install_packages.R -EOF +# rm ./install_packages.REOF ENV APP_ROOT=/opt/app-root From 34a95e25085d8d81338a3d6654210d91fc5df01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Mon, 10 Nov 2025 13:07:02 +0100 Subject: [PATCH 2/2] NO-JIRA: fix syntax error transforming commented out instructions (#1682) (cherry picked from commit f9624b592178d0284ab210a83ecb20ef1e4fb57e) --- rstudio/rhel9-python-3.12/Dockerfile.cpu | 7 ++++--- rstudio/rhel9-python-3.12/Dockerfile.cuda | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/rstudio/rhel9-python-3.12/Dockerfile.cpu b/rstudio/rhel9-python-3.12/Dockerfile.cpu index e9b5434c93..dd57a7b6a1 100644 --- a/rstudio/rhel9-python-3.12/Dockerfile.cpu +++ b/rstudio/rhel9-python-3.12/Dockerfile.cpu @@ -171,9 +171,10 @@ COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf # # https://cran.r-project.org/web/packages # COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ # RUN /bin/bash <<'EOF' -set -Eeuxo pipefail -R -f ./install_packages.R -# rm ./install_packages.REOF +# set -Eeuxo pipefail +# R -f ./install_packages.R +# rm ./install_packages.R +# EOF ENV APP_ROOT=/opt/app-root diff --git a/rstudio/rhel9-python-3.12/Dockerfile.cuda b/rstudio/rhel9-python-3.12/Dockerfile.cuda index c815bffd75..8b50b3c592 100644 --- a/rstudio/rhel9-python-3.12/Dockerfile.cuda +++ b/rstudio/rhel9-python-3.12/Dockerfile.cuda @@ -185,9 +185,10 @@ COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf # # https://cran.r-project.org/web/packages # COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./ # RUN /bin/bash <<'EOF' -set -Eeuxo pipefail -R -f ./install_packages.R -# rm ./install_packages.REOF +# set -Eeuxo pipefail +# R -f ./install_packages.R +# rm ./install_packages.R +# EOF ENV APP_ROOT=/opt/app-root