Open JosiahParry opened 1 year ago
I totaly agree :)
In fact, it's rather complicated to manage several different OS for the Docker image. The interest is very minimal. Here we should go back to rstudio/r-base... but it seems unnecessary to me. Let's simplify all this. Always start from rocker/r-base, which is based on Debian. And that will be more than enough :)
Either the user defines a FROM, and we'll use exactly the image passed as a parameter, or we'll use r_version/ the R from the renv.lock to use the base version of rocker/r-base. This will also help manage bug #53
The default
FROM
argument isrocker/r-base
which is a debian image. Using thedistro
arg helps find the appropriate system dependencies. theFROM
argument will always berocker/r-base
for alldistro
values.For example a simple renv.lock file with the following call
Generated this dockerfile
If pak is to be used for identifying system dependencies, I believe the
FROM
argument should be removed and the FROM statement derived from thedistro
argument so that the base image and the system dep commands are in agreement.https://github.com/ThinkR-open/dockerfiler/blob/e40f804e9728afb9bb5a8c52d965c9ac4a8fd58a/R/dock_from_renv.R#L50