[docker] Add ARM support where available from upstream #3655
+15
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Allows declaration of Docker platform support to vary by R version as well as by image, and uses it to add ARM support when R version is 4.5.
Motivation and Context
The Rocker project is now providing an arm64 build of the tidyverse image, thus far for R 4.5 only. I'd love to use it on my machine!
One relevant question is how much complexity is needed here and how long we'll need to support a mix of platforms instead of assuming dual amd64/arm64 everywhere. I think the answer is "a while" -- Rocker's general approach is to not backport changes like this to older images, so I expect the R 4.2 through 4.4 images to stay AMD-only, and it's not clear if/when they plan to add ARM support to the R-devel image.
Review Time Estimate
Types of changes
Checklist: