flat-zoo-31952
06/12/2020, 6:01 PMhundreds-father-404
06/12/2020, 6:03 PMhundreds-father-404
06/12/2020, 6:04 PMhundreds-father-404
06/12/2020, 6:04 PMkeeps taking me to shopping results for khakisĀ šš unfortunate naming
wonderful-iron-54019
06/12/2020, 6:06 PMwonderful-iron-54019
06/12/2020, 6:07 PMpants.ini
optionflat-zoo-31952
06/12/2020, 6:08 PMwonderful-iron-54019
06/12/2020, 6:08 PMflat-zoo-31952
06/12/2020, 6:08 PMhundreds-father-404
06/12/2020, 6:43 PMpath for the docer executable is hardcoded right now where it really should be a CLI orĀ pants.iniĀ optionTo do this, you would create a dedicated Subsystem like this https://github.com/pantsbuild/pants/blob/7268985491bb935c6c9845726ff91981211910fe/src/python/pants/source/source_root.py#L143-L160 Then, in your
rules()
entry point, add SubsystemRule(DockerConfig)
(from pants.engine.rules
). Then, in your @rule
signature, include the parameter docker_config: DockerConfig
. This will get you access to the subsystem, and you can access its values with something like docker_config.options.docker_path
wonderful-iron-54019
06/12/2020, 6:43 PMwonderful-iron-54019
06/12/2020, 6:44 PMcuddly-window-48195
06/12/2020, 7:06 PMItās one of the more requested features. CcĀ @happy-kitchen-89482Ā for adding this to the roadmapI would also be very interested in this!
Iām struggling to search for it online, because āpants dockerā keeps taking me to shopping results for khakisĀ šI have been there. I will say that āpantsbuildā seems to be more fruitful.
happy-kitchen-89482
06/12/2020, 7:20 PMhappy-kitchen-89482
06/12/2020, 7:22 PMcuddly-window-48195
06/12/2020, 7:26 PMcuddly-window-48195
06/12/2020, 7:27 PMhappy-kitchen-89482
06/13/2020, 1:54 AMcuddly-window-48195
06/15/2020, 5:21 PMminiature-lamp-45970
08/19/2020, 5:32 PMhappy-kitchen-89482
08/21/2020, 1:10 PMminiature-lamp-45970
08/21/2020, 5:55 PMhundreds-father-404
08/21/2020, 6:00 PM