GithubHelp home page GithubHelp logo

Dockerfile about btydplus HOT 5 CLOSED

mplatzer avatar mplatzer commented on August 15, 2024
Dockerfile

from btydplus.

Comments (5)

mplatzer avatar mplatzer commented on August 15, 2024

sounds interesting. could you share that file here via this ticket?

from btydplus.

paoloRais avatar paoloRais commented on August 15, 2024

Sure, here it is:

## Adapted from zamora/r-devtools
## Start with the official rocker image (lightweight Debian)
FROM rocker/r-base:latest

# Install external dependencies
RUN apt-get update -qq \
 && apt-get install -t unstable -y --no-install-recommends \
 libcurl4-openssl-dev \
 libssl-dev \
 libsqlite3-dev \
 libxml2-dev \
 qpdf \
 vim \
 libgsl-dev \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/ \
 && rm -rf /tmp/downloaded_packages/ /tmp/*.rds

# Install devtools and testthat
#RUN Rscript -e 'install.packages(c("devtools","testthat"),dependencies = TRUE)'
RUN install2.r --error \
  devtools \
  testthat \
  gsl
RUN Rscript -e 'devtools::install_github("mplatzer/BTYDplus", dependencies=TRUE)'

When you will run the image, you will need to forward X11 for the plotting tools as explained in:
http://stackoverflow.com/a/25334301/5251962

from btydplus.

mplatzer avatar mplatzer commented on August 15, 2024

thanks Paolo! I have only little experience with Docker, but shouldn't that file then rather be hosted at DockerHub? as of now, I am not convinced that each and every R package should include (and maintain) that same docker file template.

from btydplus.

paoloRais avatar paoloRais commented on August 15, 2024

I think it is a matter of choice - I agree that Docker is not that common in the R community, but I have seen quite a lot of Python packages that maintain one and I think it is a nice idea for installing/testing in isolation, especially for packages that have a lot of dependencies, hence my initial question.

In my opinion the cons are:

  • Not many users will use that
  • Not sure if there is any CRAN requirement on that
  • Not sure how to include it in the CI framework

While the pros are:

  • It saves time to whoever may want to test/deploy the package without going through the whole R + dependencies installation process.
  • It allows for a generally easier testing & deployment
    -It keeps the dockerfile here rather than in an additional location
  • It is a single lightweight additional file and it does not affect in any way the users not using docker

from btydplus.

mplatzer avatar mplatzer commented on August 15, 2024

close as wontfix

from btydplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.