Replies: 3 comments 1 reply
-
can you try with this one :
and tell me wich step fails ? |
Beta Was this translation helpful? Give feedback.
-
Hi I'm trying your dockerfile `
|
Beta Was this translation helpful? Give feedback.
-
it's ok!! j'ai ajouté ces 2 éléments : now my dockerfile looks like this
|
Beta Was this translation helpful? Give feedback.
-
I created an app with golem. I want to use docker but the container won't launch. There is an error :
Error in loadNamespace(name) : there is no package called ‘demogolem’ Calls: :: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted
here is the dockerfile :
FROM rocker/r-ver:3.6.3 RUN apt-get update && apt-get install -y git-core libcurl4-openssl-dev libgit2-dev libglpk-dev libgmp-dev libicu-dev libssl-dev libxml2-dev make pandoc pandoc-citeproc zlib1g-dev && rm -rf /var/lib/apt/lists/* RUN echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl', Ncpus = 4)" >> /usr/local/lib/R/etc/Rprofile.site RUN R -e 'install.packages("remotes")' RUN Rscript -e 'remotes::install_version("glue",upgrade="never", version = "1.4.2")' RUN Rscript -e 'remotes::install_version("processx",upgrade="never", version = "3.5.1")' RUN Rscript -e 'remotes::install_version("htmltools",upgrade="never", version = "0.5.1.1")' RUN Rscript -e 'remotes::install_version("dplyr",upgrade="never", version = "1.0.5")' RUN Rscript -e 'remotes::install_version("pkgload",upgrade="never", version = "1.2.1")' RUN Rscript -e 'remotes::install_version("attempt",upgrade="never", version = "0.3.1")' RUN Rscript -e 'remotes::install_version("shiny",upgrade="never", version = "1.6.0")' RUN Rscript -e 'remotes::install_version("DBI",upgrade="never", version = "1.1.1")' RUN Rscript -e 'remotes::install_version("testthat",upgrade="never", version = "3.0.2")' RUN Rscript -e 'remotes::install_version("config",upgrade="never", version = "0.3.1")' RUN Rscript -e 'remotes::install_version("spelling",upgrade="never", version = "2.2")' RUN Rscript -e 'remotes::install_version("shinydashboard",upgrade="never", version = "0.7.1")' RUN Rscript -e 'remotes::install_version("shinycssloaders",upgrade="never", version = "1.0.0")' RUN Rscript -e 'remotes::install_version("RPostgreSQL",upgrade="never", version = "0.6-2")' RUN Rscript -e 'remotes::install_version("highcharter",upgrade="never", version = "0.8.2")' RUN Rscript -e 'remotes::install_version("golem",upgrade="never", version = "0.3.1")' RUN Rscript -e 'remotes::install_version("DT",upgrade="never", version = "0.18")' RUN mkdir /build_zone ADD . /build_zone WORKDIR /build_zone RUN R -e 'remotes::install_local(upgrade="never")' RUN rm -rf /build_zone EXPOSE 80 CMD R -e "options('shiny.port'=80,shiny.host='0.0.0.0');demogolem::run_app()"
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions