Skip to content

Commit

Permalink
Add sys deps from Dockerfile in r func (with &&)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Nov 17, 2023
1 parent 8cd076a commit 4ca6ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM {BASE_IMAGE}
RUN Rscript -e 'if(!require("remotes")) install.packages("remotes"); \
if(!require("rworkflows")) remotes::install_github("neurogenomics/rworkflows@dev");'
#### --Step 3--: Install system dependencies ####
RUN sysreqs=$(Rscript -e 'rworkflows::dependencies_linux(package="rworkflows")') \
RUN sysreqs=$(Rscript -e 'rworkflows::dependencies_linux(package="rworkflows")') && \
sudo -s eval "$sysreqs"
#### --Step 2--: Create a buildzone folder ####
# BiocCheck requires the buildzone to have the same name as the R package
Expand All @@ -17,7 +17,7 @@ RUN echo $PKG
RUN mkdir -p /$PKG
ADD . /$PKG
WORKDIR /$PKG
#### --Step 5--:Install package dependencies ####
#### --Step 5--: Install package dependencies ####
RUN Rscript -e 'options(crayon.enabled=TRUE, timeout={TIMEOUT}); \
if(!require("BiocManager",quietly=TRUE)) install.packages("BiocManager"); \
repos <- BiocManager::repositories(); \
Expand Down

0 comments on commit 4ca6ac5

Please sign in to comment.