fbreitwieser / pavian

🌈 Interactive analysis of metagenomics data
https://doi.org/10.1093/bioinformatics/btz715
367 stars 70 forks source link

How to configure docker mode pavian with pavian::runApp(maxUploadSize="512M") #77

Closed Gray-Tu closed 3 years ago

Gray-Tu commented 3 years ago

Hi,

Thank you for this awesome visualization tool. For some reason, I only can choose docker image for deployment on local server. I got a Maximum upload size exceeded issue when upload a 40 mb bam file (and removed unaligned read)

Should I re-build a new image with add maxUploadSize="512M" in some file (I'm no sure) ?

Best, Gray

Gray-Tu commented 3 years ago

I found a solution at https://github.com/fbreitwieser/pavian/issues/52#issuecomment-822758005

thanks @fanninpm

Gray-Tu commented 3 years ago

for more detail: if you install Rsamtools, it will install Rhtslib firstly.

The apt-get update && apt-get install -y libboost-all-dev libbz2-dev for bzlib.h and liblzma-dev for lzma.h and set 512M for maxUploadSize

My full Dockerfile is like:

FROM rocker/shiny-verse:4.0.4

RUN apt-get update && apt-get install -y libboost-all-dev libbz2-dev liblzma-dev

RUN R -e "BiocManager::install(\"Rsamtools\")"

RUN installGithub.r fbreitwieser/pavian

EXPOSE 80

CMD ["R", "-e", "pavian::runApp(host=\"0.0.0.0\", port=80, maxUploadSize=\"512M\")"]

It work on 2021/4/28

Thanks again