Skip to content

Commit

Permalink
Install R-Package with version locks
Browse files Browse the repository at this point in the history
  • Loading branch information
dibryant committed Apr 1, 2024
1 parent 69920b4 commit 9d60772
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
24 changes: 24 additions & 0 deletions '
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This is a combination of 2 commits.
# This is the 1st commit message:

Install R-Package with version locks

# This is the commit message #2:

s

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date: Wed Mar 20 14:41:48 2024 -0400
#
# interactive rebase in progress; onto 69920b4
# Last commands done (2 commands done):
# pick d095ac9 Install R-Package with version locks
# squash 94d4273 s
# No commands remaining.
# You are currently rebasing branch 'rs-packages' on '69920b4'.
#
# Changes to be committed:
# modified: rstudio/c9s-python-3.9/Dockerfile
#
17 changes: 11 additions & 6 deletions rstudio/c9s-python-3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ COPY rsession.conf /etc/rstudio/rsession.conf
# package installation
RUN dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" \
&& dnf clean all && rm -rf /var/cache/yum
RUN R -e "install.packages('Rcpp')"
ARG NEEDPACKAGE

RUN if [ -n "$NEEDPACKAGE" ]; then R -e "install.packages(c('tidyverse', 'tidymodels', 'plumber', 'vetiver', 'devtools'))" ; else echo "The variable NEEDPACKAGE not set -> skipping installation of extra R packages"; fi

# Install NGINX to proxy RStudio and pass probes check
# Installation of R Packages
RUN R -e "install.packages('remotes')"
RUN R -e "require('remotes') && \
remotes::install_versions('Rcpp','1.0.12' ) && \
remotes::install_versions('tidymodels', '2.0.0') && \
remotes::install_versions('tidyverse','1.1.1') && \
remotes::install_versions('plumber','1.2.1') && \
remotes::install_versions('vetiver','0.2.5') && \
remotes::install_versions('devtools','2.4.5')"

# Install NGINX to proxy RStudio and pass probes check
ENV NGINX_VERSION=1.24 \
NGINX_SHORT_VER=124 \
NGINX_CONFIGURATION_PATH=${APP_ROOT}/etc/nginx.d \
Expand Down

0 comments on commit 9d60772

Please sign in to comment.