-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix biocmanager package installation
- Loading branch information
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
# --platform=linux/amd64 to avoid 'no match for platform in the manifest' on M1 | ||
# use --platform=linux/amd64 to avoid 'no match for platform in the manifest' on M1 | ||
FROM rocker/tidyverse:4 | ||
|
||
COPY . /cogaps | ||
WORKDIR /cogaps | ||
|
||
RUN sudo apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt-get install libhdf5-dev build-essential patch cmake -y | ||
apt-get install libhdf5-dev build-essential patch -y | ||
|
||
RUN Rscript -e 'devtools::install_deps()' | ||
#packages below didn't install with devtools::install_deps, needed BiocManager | ||
RUN Rscript -e 'install.packages("BiocManager");\ | ||
BiocManager::install(c("S4Vectors", "SingleCellExperiment", "SummarizedExperiment", "rhdf5"))' | ||
|
||
#install all other dependencies | ||
RUN Rscript -e 'devtools::install_deps(".", dependencies=TRUE)' | ||
|
||
#need to restart R sometimes https://github.com/r-lib/devtools/issues/2395 | ||
RUN Rscript -e 'devtools::install(".", dependencies=TRUE)' | ||
|
||
#https://github.com/r-lib/devtools/issues/2395 | ||
RUN Rscript -e 'devtools::install()' |