OceaneCsn / DIANE

Dashboard for the Inference and Analysis of Networks from Expression data
GNU General Public License v3.0
14 stars 4 forks source link

Docker build issue #45

Open gfontenay opened 1 year ago

gfontenay commented 1 year ago

Hello,

I am following the simple instructions but run into an issue with the docker build.

Thanks for any assistance!

------                                                                                                                                                             
 > [31/66] RUN Rscript -e 'remotes::install_version("knitr",upgrade="never")':                                                                                     
1.703 Downloading package from url: https://cran.rstudio.com/src/contrib/knitr_1.43.tar.gz                                                                         
3.167 Installing package into ‘/usr/local/lib/R/site-library’                                                                                                      
3.167 (as ‘lib’ is unspecified)                                                                                                                                    
3.297 * installing *source* package ‘knitr’ ...                                                                                                                    
3.305 ** package ‘knitr’ successfully unpacked and MD5 sums checked
3.318 ** using staged installation
3.358 ** R
3.380 ** demo
3.381 ** inst
3.389 ** byte-compile and prepare package for lazy loading
3.525 Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
3.525   namespace ‘xfun’ 0.34 is being loaded, but >= 0.39 is required
3.525 Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
3.525 Execution halted
3.525 ERROR: lazy loading failed for package ‘knitr’
3.526 * removing ‘/usr/local/lib/R/site-library/knitr’
3.526 * restoring previous ‘/usr/local/lib/R/site-library/knitr’
3.534 Error in i.p(...) : 
3.534   (converted from warning) installation of package ‘/tmp/RtmpDIHpRA/remotes52647b0d2/knitr’ had non-zero exit status
3.534 Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
3.541 Execution halted
------
Dockerfile:36
--------------------
  34 |     RUN Rscript -e 'remotes::install_version("shiny",upgrade="never")'
  35 |     RUN Rscript -e 'remotes::install_version("pkgload",upgrade="never")'
  36 | >>> RUN Rscript -e 'remotes::install_version("knitr",upgrade="never")'
  37 |     RUN Rscript -e 'remotes::install_version("randomForest",upgrade="never")'
  38 |     RUN Rscript -e 'remotes::install_version("foreach",upgrade="never")'
--------------------
ERROR: failed to solve: process "/bin/sh -c Rscript -e 'remotes::install_version(\"knitr\",upgrade=\"never\")'" did not complete successfully: exit code: 1
Alexandre-So commented 1 year ago

Hello,

Can you try by replacing the dockerfile you downladed here by the one from my fork ?

https://github.com/Alexandre-So/DIANE/blob/master/Dockerfile

Best,

JiahuaQu commented 1 year ago

I replaced the Dockerfile with the new one, but still failed in building the Docker container. Error: Hope get further help. Thank you. error.txt

Alexandre-So commented 1 year ago

It looks like a timeout problem in your case.

Could you please try again and tell me if it still fails ?

If it still doesn't work, could you try to launch a R dynamic session (on the same machine as the one having a problem with the docker install) and type :

install.packages("remotes")
remotes::install_github("ryapric/loggit@8293ba322c86a80b81b07a81e1ae4f9a64b395a7")

And see if it works ? (this will try to install the package in your R environment).

Best,