opensafely-core / r-docker

Docker image for running R scripts in OpenSAFELY
1 stars 3 forks source link

Possible next steps for r-docker #101

Open iaindillingham opened 2 years ago

iaindillingham commented 2 years ago

Here are some possible next steps for r-docker, following a meeting with @bloodearnest, @milanwiedemann, and @rebkwok. They're arranged from least to most effort, over the short-to-medium term.

Continue to update the existing image. Address:

Fix the image.

Create a new - and reversion the existing - image.

Handle dependencies better.

remlapmot commented 2 years ago

(sorry for long post)

Below is what I think would be the most stable and easiest approach for you to maintain long term (because it's what rocker/r-ver, Microsoft, and RStudio Cloud do - the key for stable maintenance for you is just to install packages from CRAN from the same day in an image).

A subtlety here is that if you followed this approach you wouldn't want users on latest because with rocker/r-ver the latest tag corresponds to the latest version of R and CRAN packages from the day it's run

Also, I have made a second version of the reverse engineered Dockerfile which minimises the number of layers (apparently better Dockerfile practice).

I will try and keep both upto date if additional packages are added.