Skip to content

Commit

Permalink
add rock dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ESCRI11 committed Nov 8, 2024
1 parent d46fc9c commit aa6fb35
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docker/Dockerfile_dsOmics
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Rock R Server Dockerfile with DataSHIELD dsOmics
#
# Based on https://github.com/datashield/docker-rock
#

FROM datashield/rock-base:6.3-R4.3

ENV DSOMICS_VERSION v1.0.18-4

ENV ROCK_LIB /var/lib/rock/R/library

# Install new R packages
RUN Rscript -e "BiocManager::install(c('Biobase', 'SNPRelate', 'GENESIS', 'GWASTools', 'GenomicRanges', 'SummarizedExperiment', 'DESeq2', 'edgeR', 'MEAL'), update = FALSE, ask = FALSE, lib = '$ROCK_LIB')" \
&& Rscript -e "remotes::install_github('isglobal-brge/dsOmics', ref = '$DSOMICS_VERSION', upgrade = FALSE, lib = '$ROCK_LIB')"

RUN chown -R rock $ROCK_LIB
7 changes: 7 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Variables
DOCKERFILE_NAME := Dockerfile_dsOmics
IMAGE_NAME := brgelab/rock-omics
TAG := latest

build:
docker build -f $(DOCKERFILE_NAME) -t $(IMAGE_NAME):$(TAG) .

0 comments on commit aa6fb35

Please sign in to comment.