Docker for Bioconductor Packages
0
0
Entering edit mode
10 months ago
S • 0

Hello!

I am trying to use Docker to containerize an RStudio Environment with Bioconductor Packages VariantAnnotation and trio. It is not currently working- I was wondering if anyone had any suggestions?

Here is my Dockerfile:

FROM rocker/rstudio

RUN apt-get update && \
    apt-get install -y \
    libxml2-dev \
    libssl-dev \
    libcurl4-openssl-dev

RUN R -e "install.packages('data.table')"

RUN R -e "if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager')"
RUN R -e 'BiocManager::install("VariantAnnotation")'
RUN R -e 'BiocManager::install("trio")'

CMD ["R"]

Thank you!

Docker Bioconductor • 843 views
ADD COMMENT
0
Entering edit mode

What's not working and what is the verbatim error message if any?

ADD REPLY
0
Entering edit mode

For Bioconductor (or R in general) I recommend the Bioconductor Docker image, current one is bioconductor/bioconductor_docker:RELEASE_3_18. It's Rocker with lots of dependencies on top so you can install every Bioconductor package out of the box. As for your problem I would probably remove CMD ["R"] since Rocker already has an entrypoint which is the rstudio-server session. Read the documentation on how to launch it. I personally would run R scripts via Rscript. For more advise show what "does not work".

https://www.bioconductor.org/help/docker/

ADD REPLY
0
Entering edit mode

Hello, I had updated the code to include

FROM bioconductor/bioconductor_docker:RELEASE_3_18

RUN apt-get update \

## Install the python package tensorflow
&& pip install tensorflow       \
## Remove packages in '/var/cache/' and 'var/lib'
## to remove side-effects of apt-get update
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

This is the error I am getting still: "exec /usr/bin/sh: exec format error"

What does this mean and how can I fix it?

Thank you!

ADD REPLY
0
Entering edit mode

what command do you run?

ADD REPLY
0
Entering edit mode

I am running CMD ["Rscript"]

ADD REPLY
0
Entering edit mode

I think it might have to do with RUN apt-get, might need RStudio Specific packages in there.

ADD REPLY

Login before adding your answer.

Traffic: 2458 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6