Skip to content

Commit 2d93640

Browse files
Merge pull request opendatahub-io#527 from andyatmiami/feat/rhds-2025a-rstudio-upgrade
feat(rstudio): update R/RStudio for 2025a
2 parents 7d75b86 + 2b670fe commit 2d93640

File tree

9 files changed

+104
-50
lines changed

9 files changed

+104
-50
lines changed

rstudio/rhel9-python-3.11/Dockerfile.cpu

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RUN if [ -d "${SECRET_DIR}" ]; then \
6666
--auto-attach; \
6767
fi
6868

69-
ENV R_VERSION=4.4.1
69+
ENV R_VERSION=4.4.3
7070

7171
# Install R
7272
RUN yum install -y yum-utils && \
@@ -80,30 +80,33 @@ RUN yum install -y yum-utils && \
8080
yum -y clean all --enablerepo='*'
8181

8282
# set R library to default (used in install.r from littler)
83-
RUN chmod -R a+w /usr/lib64/R/library
8483
ENV LIBLOC=/usr/lib64/R/library
85-
86-
# set User R Library path
87-
RUN mkdir -p /opt/app-root/bin/Rpackages/4.4 && chmod -R a+w /opt/app-root/bin/Rpackages/4.4
8884
ENV R_LIBS_USER=/opt/app-root/bin/Rpackages/4.4
8985

86+
RUN chmod -R a+w ${LIBLOC} && \
87+
# create User R Library path
88+
mkdir -p ${R_LIBS_USER} && \
89+
chmod -R a+w ${R_LIBS_USER}
90+
9091
WORKDIR /tmp/
9192

9293
# Install RStudio
93-
RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
94-
yum install -y rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
95-
rm rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
96-
yum -y clean all --enablerepo='*'
97-
98-
# Specific RStudio config and fixes
99-
RUN chmod 1777 /var/run/rstudio-server && \
100-
mkdir -p /usr/share/doc/R
94+
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
95+
RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/${RSTUDIO_RPM} && \
96+
yum install -y ${RSTUDIO_RPM} && \
97+
rm ${RSTUDIO_RPM} && \
98+
yum -y clean all --enablerepo='*' &&\
99+
# Specific RStudio config and fixes \
100+
chmod 1777 /var/run/rstudio-server && \
101+
mkdir -p /usr/share/doc/R && \
102+
# package installation \
103+
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible \
104+
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
105+
dnf clean all && \
106+
rm -rf /var/cache/yum
107+
101108
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
102109

103-
# package installation
104-
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
105-
RUN dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed \
106-
&& dnf clean all && rm -rf /var/cache/yum
107110
# Install R packages
108111
RUN R -e "install.packages('Rcpp')"
109112

rstudio/rhel9-python-3.11/Dockerfile.cuda

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ RUN if [ -d "${SECRET_DIR}" ]; then \
216216
--auto-attach; \
217217
fi
218218

219-
ENV R_VERSION=4.4.1
219+
ENV R_VERSION=4.4.3
220220

221221
# Install R
222222
RUN yum install -y yum-utils && \
@@ -230,30 +230,33 @@ RUN yum install -y yum-utils && \
230230
yum -y clean all --enablerepo='*'
231231

232232
# set R library to default (used in install.r from littler)
233-
RUN chmod -R a+w /usr/lib64/R/library
234233
ENV LIBLOC=/usr/lib64/R/library
235-
236-
# set User R Library path
237-
RUN mkdir -p /opt/app-root/bin/Rpackages/4.4 && chmod -R a+w /opt/app-root/bin/Rpackages/4.4
238234
ENV R_LIBS_USER=/opt/app-root/bin/Rpackages/4.4
239235

236+
RUN chmod -R a+w ${LIBLOC} && \
237+
# create User R Library path
238+
mkdir -p ${R_LIBS_USER} && \
239+
chmod -R a+w ${R_LIBS_USER}
240+
240241
WORKDIR /tmp/
241242

242243
# Install RStudio
243-
RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
244-
yum install -y rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
245-
rm rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
246-
yum -y clean all --enablerepo='*'
247-
248-
# Specific RStudio config and fixes
249-
RUN chmod 1777 /var/run/rstudio-server && \
250-
mkdir -p /usr/share/doc/R
244+
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
245+
RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/${RSTUDIO_RPM} && \
246+
yum install -y ${RSTUDIO_RPM} && \
247+
rm ${RSTUDIO_RPM} && \
248+
yum -y clean all --enablerepo='*' &&\
249+
# Specific RStudio config and fixes \
250+
chmod 1777 /var/run/rstudio-server && \
251+
mkdir -p /usr/share/doc/R && \
252+
# package installation \
253+
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible \
254+
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
255+
dnf clean all && \
256+
rm -rf /var/cache/yum
257+
251258
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
252259

253-
# package installation
254-
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
255-
RUN dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed \
256-
&& dnf clean all && rm -rf /var/cache/yum
257260
# Install R packages
258261
RUN R -e "install.packages('Rcpp')"
259262

rstudio/rhel9-python-3.11/Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ verify_ssl = true
77

88
[packages]
99
# Base packages
10-
wheel = "~=0.44.0"
11-
setuptools = "~=74.1.2"
10+
setuptools = "~=75.8.2"
11+
wheel = "~=0.45.1"
1212

1313
[requires]
1414
python_version = "3.11"

rstudio/rhel9-python-3.11/Pipfile.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
patches:
6+
- path: pod-patch.yaml
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: pod
6+
spec:
7+
containers:
8+
- name: rstudio
9+
resources:
10+
limits:
11+
memory: 6Gi
12+
requests:
13+
memory: 6Gi
14+
volumeMounts:
15+
- mountPath: /opt/app-root/src
16+
name: tmp-volume
17+
volumes:
18+
- name: tmp-volume
19+
emptyDir:
20+
medium: Memory
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
resources:
3+
- ../../../base
4+
5+
components:
6+
- ../../../components/accelerator
7+
8+
patches:
9+
- path: pod-patch.yaml
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
apiVersion: v1
3+
kind: Pod
4+
metadata:
5+
name: pod
6+
spec:
7+
nodeSelector:
8+
accelerator: cuda
9+
containers:
10+
- name: rstudio
11+
resources:
12+
limits:
13+
nvidia.com/gpu: '1'

rstudio/rhel9-python-3.11/requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#
55
# Default dependencies
66
#
7-
setuptools==74.1.3; python_version >= '3.8' \
8-
--hash=sha256:1cfd66bfcf197bce344da024c8f5b35acc4dcb7ca5202246a75296b4883f6851 \
9-
--hash=sha256:fbb126f14b0b9ffa54c4574a50ae60673bbe8ae0b1645889d10b3b14f5891d28
10-
wheel==0.44.0; python_version >= '3.8' \
11-
--hash=sha256:2376a90c98cc337d18623527a97c31797bd02bad0033d41547043a1cbfbe448f \
12-
--hash=sha256:a29c3f2817e95ab89aa4660681ad547c0e9547f20e75b0562fe7723c9a2a9d49
7+
setuptools==75.8.2; python_version >= '3.9' \
8+
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
9+
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
10+
wheel==0.45.1; python_version >= '3.8' \
11+
--hash=sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
12+
--hash=sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248

0 commit comments

Comments
 (0)