-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
In the "Customizing Image Pull Behavior" section:
https://java.testcontainers.org/features/configuration/#customizing-image-pull-behaviour
there is an ability to to specify the behavior of timeouts while pulling.
There is also "pull.policy" which is not documented here but only in another place (https://java.testcontainers.org/features/advanced_options/#image-pull-policy)
the idea is to add a "pull.platform" or "pull.default-platform" or something which will override the platform detected normally with the one given as a property.
The proposal, initially to provide a single value as an override, is amended to provide two settings. one of which is a list of platforms to attempt to use - say ["darwin/arm64", "linux/arm64", "linux/amd64"] - and another which is a boolean flag which says whether or not the first one is a strict requirement (if false - implicit last thing to try is the default behavior). if the flag is true, and the first parameter is not null, the image pull action fails if none of the archs are present.
and document it in this section.
pros:
satisfy the needs described here - #3810 (comment)
cons:
potentially a satisfactory solution can be contained in user code as here - https://java.testcontainers.org/features/advanced_options/#using-createcontainercmdmodifier
conclusion:
purpose of this issue is to determine whether or not this addition is welcome as it seems to solve a need based on the other thread (linked in pros section)