Skip to content

Commit 7248601

Browse files
committed
RHAIENG-389: Change RStudio base-image to AIPCC
Begin by using the provided AIPCC base image and the copr of rstudio-server-dependencies to pass-through dnf upgrade. In the meantime, we are installing other dependencies using mirror.stream.centos.org while we await the final working AIPCC image.
1 parent 731c89f commit 7248601

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

rstudio/c9s-python-3.12/Dockerfile.cpu

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]==1.9.0" "uv==0.8.12"
1919
# OS Packages needs to be installed as root
2020
USER root
2121

22+
# Enable copr, so we can do dnf upgrade
23+
RUN dnf copr enable copr.devel.redhat.com/mcurlej/rstudio-server-dependencies rhel-9-x86_64 -y
24+
2225
# upgrade first to avoid fixable vulnerabilities begin
2326
# Problem: The operation would result in removing the following protected packages: systemd
2427
# (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
@@ -60,10 +63,18 @@ USER 0
6063

6164
ENV R_VERSION=4.5.1
6265

66+
# Use CentOS while we are still waiting on final AIPCC image
67+
RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/
68+
RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/
69+
RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/CRB/x86_64/os/
70+
RUN dnf makecache
71+
RUN rpm --import https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official
72+
73+
# This package causes issues with openssl installation
74+
RUN rpm -e openssl-fips-provider-so --nodeps
75+
6376
# Install R
64-
RUN dnf install -y 'dnf-command(config-manager)' && \
65-
dnf config-manager --set-enabled crb && \
66-
dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
77+
RUN dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
6778
INSTALL_PKGS="R-core R-core-devel R-java R-Rcpp R-highlight \
6879
R-littler R-littler-examples openssl-libs compat-openssl11" && \
6980
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
@@ -83,6 +94,10 @@ RUN chmod -R a+w ${LIBLOC} && \
8394
WORKDIR /tmp/
8495
COPY /rstudio/utils /tmp/utils
8596

97+
# npm required by ./cve_remediation.sh
98+
RUN dnf module enable nodejs:22 -y
99+
RUN dnf install nodejs npm -y
100+
86101
# Install RStudio
87102
ARG RSTUDIO_RPM=rstudio-server-rhel-2025.09.0-387-x86_64.rpm
88103
RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/${RSTUDIO_RPM} && \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BASE_IMAGE=quay.io/sclorg/python-312-c9s:c9s
1+
BASE_IMAGE=quay.io/aipcc/base-images/cpu:3.0

0 commit comments

Comments
 (0)