@@ -137,7 +137,7 @@ RUN yum install -y \
137
137
${NV_CUDNN_PACKAGE_DEV} \
138
138
&& yum clean all \
139
139
&& rm -rf /var/cache/yum/*
140
-
140
+
141
141
# Set this flag so that libraries can find the location of CUDA
142
142
ENV XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda
143
143
@@ -170,7 +170,7 @@ LABEL name="odh-notebook-rstudio-server-cuda-c9s-python-3.11" \
170
170
171
171
USER 0
172
172
173
- ENV R_VERSION=4.4.1
173
+ ENV R_VERSION=4.4.3
174
174
175
175
# Install R
176
176
RUN yum install -y yum-utils && \
@@ -184,39 +184,38 @@ RUN yum install -y yum-utils && \
184
184
yum -y clean all --enablerepo='*'
185
185
186
186
# set R library to default (used in install.r from littler)
187
- RUN chmod -R a+w /usr/lib64/R/library
188
187
ENV LIBLOC=/usr/lib64/R/library
189
-
190
- # set User R Library path
191
- RUN mkdir -p /opt/app-root/bin/Rpackages/4.4 && chmod -R a+w /opt/app-root/bin/Rpackages/4.4
192
188
ENV R_LIBS_USER=/opt/app-root/bin/Rpackages/4.4
193
189
190
+ RUN chmod -R a+w ${LIBLOC} && \
191
+ # create User R Library path
192
+ mkdir -p ${R_LIBS_USER} && \
193
+ chmod -R a+w ${R_LIBS_USER}
194
+
194
195
WORKDIR /tmp/
195
196
196
197
# Install RStudio
197
- RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
198
- yum install -y rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
199
- rm rstudio-server-rhel-2024.04.2-764-x86_64.rpm && \
200
- yum -y clean all --enablerepo='*'
201
-
202
- # Specific RStudio config and fixes
203
- RUN chmod 1777 /var/run/rstudio-server && \
204
- mkdir -p /usr/share/doc/R
198
+ ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
199
+ RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel8/x86_64/${RSTUDIO_RPM} && \
200
+ yum install -y ${RSTUDIO_RPM} && \
201
+ rm ${RSTUDIO_RPM} && \
202
+ yum -y clean all --enablerepo='*' && \
203
+ # Specific RStudio config and fixes
204
+ chmod 1777 /var/run/rstudio-server && \
205
+ mkdir -p /usr/share/doc/R && \
206
+ # package installation
207
+ # install necessary texlive-framed package to make Knit R markup to PDF rendering possible
208
+ 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 && \
209
+ dnf clean all && \
210
+ rm -rf /var/cache/yum
211
+
205
212
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
206
213
207
- # package installation
208
- # install necessary texlive-framed package to make Knit R markup to PDF rendering possible
209
- 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 \
210
- && dnf clean all && rm -rf /var/cache/yum
211
214
# Install R packages
212
- RUN R -e "install.packages('remotes')"
213
- RUN R -e "require('remotes'); \
214
- remotes::install_version('Rcpp','1.0.14'); \
215
- remotes::install_version('tidyverse','2.0.0'); \
216
- remotes::install_version('tidymodels','1.2.0'); \
217
- remotes::install_version('plumber','1.2.2'); \
218
- remotes::install_version('vetiver','0.2.5'); \
219
- remotes::install_version('devtools','2.4.5');"
215
+ # https://cran.r-project.org/web/packages
216
+ COPY ${RSTUDIO_SOURCE_CODE}/install_packages.R ./
217
+ RUN R -f ./install_packages.R && \
218
+ rm ./install_packages.R
220
219
221
220
# Install NGINX to proxy RStudio and pass probes check
222
221
ENV NGINX_VERSION=1.24 \
0 commit comments